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.
[ BUILD # : 200409081800 ] [ JDK VERSION : J2SE 1.5.0 ] I have three Projects opened. I was switching from one Project to the other and clicked on build. Got this NPE: Annotation: Exception occurred in Request Processor java.lang.NullPointerException at org.netbeans.modules.java.j2seproject.J2SEProjectUtil.hasMainMethod(J2SEProjectUtil.java:161) at org.netbeans.modules.java.j2seproject.J2SEProjectUtil.getMainClasses(J2SEProjectUtil.java:118) at org.netbeans.modules.java.j2seproject.ui.customizer.MainClassChooser$1.run(MainClassChooser.java:77) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
I'm not able to reproduce it on my build and with my projects. The NPE is thrown from overtaken code (JavaNode.hasMain()), I have added some assertions to figure out what's wrong. Please, add to comment which assertion fails if it appears again on any new dev build. Thanks
It's unreproducible in recent builds, no reported responds for long. Closed as WORKSFORME.