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.

Bug 43535 - NPE while creating forms
Summary: NPE while creating forms
Status: VERIFIED DUPLICATE of bug 35870
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 12:01 UTC by maartenc
Modified: 2004-07-14 11:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maartenc 2004-05-19 12:01:34 UTC
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)
Comment 1 Jaromir Uhrik 2004-05-19 12:27:37 UTC

*** This issue has been marked as a duplicate of 35870 ***
Comment 2 Jaromir Uhrik 2004-07-14 11:10:49 UTC
Verified - duplicate.