Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Came across this when refactoring splashscreen plugin.
Because plugins are lazily instantiated, and because plugins execute on non-ui thread by default, if a plugin calls "getPlugin()" while the ui thread is dispatching an onMessage (or one of the various other plugin functions), then the
for (CordovaPlugin p : pluginMap.values())
fires an exception due to getPlugin() modifying the map.
Attachments
Issue Links
- is duplicated by
-
CB-7968 ConcurrentModificationException in postMessage
- Closed