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.
Hi, if I create forms using the visual form editor, I get NPE at very regular basis (say every 10 minutes). Due to these exceptions, I cannot save the corresponding .java file anymore. The only solution is to discard the changes and restart. I'm using NetBeans 3.6 (but I had the same problem with the 4.0 dev version). Here is my system specs: NetBeans 3.6 Java JDK: 1.5.0 beta Windows XP Here is the exception: java.lang.NullPointerException at org.netbeans.modules.form.JavaCodeGenerator.generateListenerAddCode(JavaCodeGenerator.java:1429) at org.netbeans.modules.form.JavaCodeGenerator.generateComponentEvents(JavaCodeGenerator.java:1412) at org.netbeans.modules.form.JavaCodeGenerator.addInitCode(JavaCodeGenerator.java:899) at org.netbeans.modules.form.JavaCodeGenerator.addInitCode(JavaCodeGenerator.java:907) at org.netbeans.modules.form.JavaCodeGenerator.addInitCode(JavaCodeGenerator.java:907) at org.netbeans.modules.form.JavaCodeGenerator.addInitCode(JavaCodeGenerator.java:907) at org.netbeans.modules.form.JavaCodeGenerator.addInitCode(JavaCodeGenerator.java:907) at org.netbeans.modules.form.JavaCodeGenerator.addInitCode(JavaCodeGenerator.java:907) at org.netbeans.modules.form.JavaCodeGenerator.regenerateInitComponents(JavaCodeGenerator.java:734) at org.netbeans.modules.form.JavaCodeGenerator.access$900(JavaCodeGenerator.java:46) at org.netbeans.modules.form.JavaCodeGenerator$FormListener.formChanged(JavaCodeGenerator.java:2546) at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:821) [catch] at org.netbeans.modules.form.FormModel$EventBroker.run(FormModel.java:892) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:201) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
*** This issue has been marked as a duplicate of 35870 ***
Verified - duplicate.