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 41096 - NPE when changing properties of any object
Summary: NPE when changing properties of any object
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:
Depends on:
Blocks:
 
Reported: 2004-03-18 06:54 UTC by hferland
Modified: 2004-07-14 12:30 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 hferland 2004-03-18 06:54:29 UTC
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition 
(build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-
b32c, mixed mode)

For an unknown reason NPE (see bellow) was 
thrown when:
- Changing any properties of any object is 
throwing the NPE (see bellow).
- Trying to save changes.

I closed the file (and form editor) then 
reopened. This fixed the problem.

The problem was reproduced twice with 
ColorPicker sample program.

Here is the stack trace:

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 Jaromir Uhrik 2004-03-18 07:27:45 UTC

*** This issue has been marked as a duplicate of 35870 ***
Comment 2 Jaromir Uhrik 2004-07-14 12:30:40 UTC
Verified - duplicate.