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 40457 - [JDK1.5.0] NPE after adding an actionPerformed handler
Summary: [JDK1.5.0] NPE after adding an actionPerformed handler
Status: VERIFIED DUPLICATE of bug 35870
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2004-02-25 11:30 UTC by jblack1395
Modified: 2004-07-14 12:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The source code that led to this problem. (3.51 KB, text/plain)
2004-02-25 11:31 UTC, jblack1395
Details
the .form file for my class (4.19 KB, text/plain)
2004-02-25 11:31 UTC, jblack1395
Details
My ide.log file (52.79 KB, text/plain)
2004-02-25 11:45 UTC, jblack1395
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jblack1395 2004-02-25 11:30:00 UTC
On Solaris 8 running on a sunblade and WinXP I 
get the following error after adding an 
actionperformed handler in my code.

Product version: 3.6 beta build 200402042050
Java: 1.5.0-beta

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:231)
	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)

I am unable to save my work as it keeps throwing 
this exception. It wasn't thrown when I did the 
action, but it a direct effect.
Comment 1 jblack1395 2004-02-25 11:31:15 UTC
Created attachment 13637 [details]
The source code that led to this problem.
Comment 2 jblack1395 2004-02-25 11:31:46 UTC
Created attachment 13638 [details]
the .form file for my class
Comment 3 jblack1395 2004-02-25 11:45:21 UTC
Created attachment 13640 [details]
My ide.log file
Comment 4 Miloslav Metelka 2004-02-25 13:50:05 UTC
Reassigning to form module.
Comment 5 Tomas Pavek 2004-02-25 14:22:40 UTC

*** This issue has been marked as a duplicate of 35870 ***
Comment 6 Jaromir Uhrik 2004-07-14 12:31:20 UTC
Verified - duplicate.