This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NPE throws after disabling of editor module. Steps to reproduce. 1. Take the newest build 02.10 2. open source editor 3. Add bookmark 4. disable editor module NPE exceptions: java.lang.NullPointerException at org.netbeans.editor.AnnotationDesc.isDefaultGlyph(AnnotationDesc.java:90) java.lang.NullPointerException at org.netbeans.editor.AnnotationDesc.getColoring(AnnotationDesc.java:80) See attachements for details.
Created attachment 2795 [details] NPE from AnnotationDesc.isDefaultGlyph
Created attachment 2796 [details] NPE from AnnotationDesc.getColoring
The problem is not in annotations, but in Editor which did not remove the annotations before uninstalling itself. I will fix it.
I did following: 1. Set some breakpoint 2. Runned debugger 3. Uninstalled editor 4. Debugger for a while 5. Tryied to close the editor Attached exception occured.
Created attachment 2974 [details] Exception thrown.
The problem is somewhere else. When editor module is disabled, the TopComponents in which the editor is used are not closed. And as one of the side effects, the exceptions from annotations are thrown.
Fixed in file: Checking in src/org/netbeans/modules/editor/EditorModule.java; new revision: 1.73; previous revision: 1.72
Resolved for 3.3.x or earlier, no new info since then -> closing.