[
https://issues.apache.org/jira/browse/CB-8031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236860#comment-14236860
]
ASF subversion and git services commented on CB-8031:
-----------------------------------------------------
Commit 54784a0948d3b3bd216383804e5e0729b5abf4b5 in cordova-amazon-fireos's
branch refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-amazon-fireos.git;h=54784a0
]
CB-8031 Fix race condition that shows as ConcurrentModificationException
Conflicts:
framework/src/org/apache/cordova/PluginManager.java
> Apps Sometimes Crash due to ConcurrentModificationException
> -----------------------------------------------------------
>
> Key: CB-8031
> URL: https://issues.apache.org/jira/browse/CB-8031
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
> Priority: Minor
>
> 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
> {code}
> for (CordovaPlugin p : pluginMap.values())
> {code}
> fires an exception due to getPlugin() modifying the map.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]