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 40184 - [JDK1.5.0] Exception on adding components to form, show context menu, etc.
Summary: [JDK1.5.0] Exception on adding components to form, show context menu, etc.
Status: VERIFIED DUPLICATE of bug 35870
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks: 39884
  Show dependency tree
 
Reported: 2004-02-17 16:01 UTC by _ tboudreau
Modified: 2004-07-14 12:32 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 _ tboudreau 2004-02-17 16:01:53 UTC
Adding any component to a form, or right 
clicking its context menu is now producing the 
exception below.

Marking this as blocking issue 39884 because I 
can't test fixes for that if I can't add 
components to a form...


java.lang.NullPointerException
	at 
org.netbeans.modules.form.JavaCodeGenerator.gener
ateListenerAddCode(JavaCodeGenerator.java:1429)
	at 
org.netbeans.modules.form.JavaCodeGenerator.gener
ateComponentEvents(JavaCodeGenerator.java:1412)
	at 
org.netbeans.modules.form.JavaCodeGenerator.addIn
itCode(JavaCodeGenerator.java:899)
	at 
org.netbeans.modules.form.JavaCodeGenerator.regen
erateInitComponents(JavaCodeGenerator.java:734)
	at 
org.netbeans.modules.form.JavaCodeGenerator.acces
s$900(JavaCodeGenerator.java:46)
	at 
org.netbeans.modules.form.JavaCodeGenerator$FormL
istener.formChanged(JavaCodeGenerator.java:2546)
	at 
org.netbeans.modules.form.FormModel.fireEvents
(FormModel.java:821)
[catch] at 
org.netbeans.modules.form.FormModel$EventBroker.r
un(FormModel.java:892)
	at 
java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:201)
	at java.awt.EventQueue.dispatchEvent
(EventQueue.java:461)
	at 
java.awt.EventDispatchThread.pumpOneEventForHiera
rchy(EventDispatchThread.java:234)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarc
hy(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 _ tboudreau 2004-02-17 16:03:42 UTC
Note closing and reopening the form seems to fix the problem for a 
while.
Comment 2 _ tboudreau 2004-02-17 16:09:48 UTC
Also, issue was found on JDK 1.5 b38
Comment 3 Milan Kubec 2004-02-18 12:22:06 UTC

*** This issue has been marked as a duplicate of 35870 ***
Comment 4 Jaromir Uhrik 2004-07-14 12:32:02 UTC
Verified - duplicate.