Community
Participate
Working Groups
We observe the error below in our automated tests on Eclipse 3.8.2. The stack is still valid for Eclipse 4.5, there were no changes in that area. The problem is that code in PluginRegistry synchronizes in multiple places on the "descriptors" field which can be set to null. This is known anti-pattern and should be fixed. Stack: java.lang.NullPointerException at org.eclipse.core.internal.plugins.PluginRegistry$RegistryListener.bundleChanged(PluginRegistry.java:191) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) Patch follows.
New Gerrit change created: https://git.eclipse.org/r/52858
Gerrit change https://git.eclipse.org/r/52858 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=513f1277bc46baf9407b99b22febef4e5e049e9d
(In reply to Eclipse Genie from comment #2) > Gerrit change https://git.eclipse.org/r/52858 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=513f1277bc46baf9407b99b22febef4e5e049e9d > Thanks Andrey.
FYI - If we are lucky, we can will be able to delete org.eclipse.core.runtime.compatibility in this milestone, which should also remove this fix and the error caused by this plug-in