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 41620 - NullPointerException in Form Editor if you try to change the iconImage Property of a JFrame
Summary: NullPointerException in Form Editor if you try to change the iconImage Proper...
Status: VERIFIED DUPLICATE of bug 35870
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-02 09:22 UTC by jkazsoki
Modified: 2004-07-14 12:28 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 jkazsoki 2004-04-02 09:22:43 UTC
Hi,

it is 3.6 RC2 (Build 200403312136).

The NullpointerException in Form Editor 
Properties chanegs improved a little bit since 
RC1 (now you can change text property), 

But it looks some of the Poperty chanes do not 
work even in RC2.

If you try changing the iconImage on the 
eproperties of a JFrame to an yother option than 
null, you get:

A java.lang.NullPointerException exception has 
occurred.
Please report this at 
http://www.netbeans.org/issues.html,
including a copy of your ide.log file as an 
attachment.
The ide.log file is located in your 
C:\Java\MyJava\.netbeans\3.6rc2\system folder.

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)

After that you cannot save the files, you have 
to change the iconImage by Reset to Defaults 2 
times (the first one also gets 
NullPointerException) but even then you cannot 
save the files (Nullpointer...). The only way to 
leave NetBeans is to discard changes in the File 
save window.

Regards,
Janos
Comment 1 Tomas Pavek 2004-04-02 13:04:02 UTC

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