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 80766

Summary: I tried to add a jlabel to a jframe and create a click event. it throws an NullPointer exception.
Product: guibuilder Reporter: linesh <linesh>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: net beans log file

Description linesh 2006-07-20 23:40:46 UTC
java.lang.NullPointerException
	at org.netbeans.modules.form.JavaCodeGenerator.generateComponentCreate
(JavaCodeGenerator.java:1115)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode
(JavaCodeGenerator.java:993)
	at org.netbeans.modules.form.JavaCodeGenerator.addCreateCode
(JavaCodeGenerator.java:998)
	at org.netbeans.modules.form.JavaCodeGenerator.regenerateInitComponents
(JavaCodeGenerator.java:815)
	at org.netbeans.modules.form.JavaCodeGenerator.regenerateCode
(JavaCodeGenerator.java:2548)
	at org.netbeans.modules.form.JavaCodeGenerator$FormListener.formChanged
(JavaCodeGenerator.java:2806)
	at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:979)
[catch] at org.netbeans.modules.form.FormModel$EventBroker.run
(FormModel.java:1079)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
	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)
-----------------------------------------
Log file:
Comment 1 linesh 2006-07-20 23:41:43 UTC
Created attachment 32072 [details]
net beans log file
Comment 2 Peter Pis 2006-07-23 20:39:47 UTC
Reassigning to "form" for evaluation.
Comment 3 Tomas Pavek 2006-07-26 14:29:36 UTC
Hopefully this problem was fixed with issue 77092.

*** This issue has been marked as a duplicate of 73127 ***