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.
Have a modified source file public class NewClass { public NewClass() { } public static class B public static class A { private int a = 0; } } If you stop typing after B inner class you get NPE from JavaEditor that tries to get an element on the current offset. JavaEditor gets the resource, clasifiers and their features. Then it askes for position of each feature (JavaMetamodel.getElementPosition). It looks like one of features is NewClass.B.A which is wrong. I have added some debug info to JavaEditor to identify the problem. See the attached stacktraces
Created attachment 18563 [details] stacktraces
Fixed. Checking in src/org/netbeans/modules/javacore/parser/MDRParser.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v <-- MDRParser.java new revision: 1.61; previous revision: 1.60 done
verified
Reorganization of java component