Community
Participate
Working Groups
build 20030611 -had the type org.eclipse.jface.util.OpenStrategy shown in the hierachy view -hit F4 on a type in a different Java editor ->got a NullPointerException in TypeHierarchy.removeTypeHierarchyChangedListener
Created attachment 5256 [details] log file
Jerome - didn't you fix this one already?
This is a different problem. The NPE happens in the following code: if (this.changeListeners == null) { return; } this.changeListeners.remove(listener); if (this.changeListeners.isEmpty()) { // <----------- NPE here deactivate(); } Sounds like a jit problem. Knut do you remember the VM version you were using? Will work around the problem by using a local var.
I was probably running on J2SC20030611. If not that then the next older SC version.
Fixed by using a local var and synchronizing the removeTypeHierarchyChangedListener(...) method.
*** Bug 41355 has been marked as a duplicate of this bug. ***
Verified.