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 101142 - AE - NPE when already created action is confirmed again
Summary: AE - NPE when already created action is confirmed again
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-16 14:09 UTC by Jana Maleckova
Modified: 2007-06-11 16:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
101142 (2.84 KB, text/plain)
2007-04-16 14:12 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-04-16 14:09:53 UTC
NetBeans IDE Dev (Build 200704151800)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Description:
============
open Action editor and load some already created action and then press OK. An
NPE will occur. 

StackTrace:
===========
java.lang.NullPointerException
	at org.netbeans.modules.form.ResourceSupport.makeResource(ResourceSupport.java:140)
	at
org.netbeans.modules.form.RADComponent.resourcePropertyConvert(RADComponent.java:1454)
	at
org.netbeans.modules.form.RADComponent$PropertyListenerConvertor.convert(RADComponent.java:1443)
	at org.netbeans.modules.form.FormProperty.convertValue(FormProperty.java:833)
Comment 1 Jana Maleckova 2007-04-16 14:12:45 UTC
Created attachment 40961 [details]
101142
Comment 2 Joshua Marinacci 2007-04-17 00:46:06 UTC
I cannot reproduce this error.  From your stacktrace it appears you are using the Application Actions top 
component. If you select an action to edit, press the 'edit action' button, then press okay to close the 
dialog, the action is updated. It does not throw an exception. Can you attach a project where this 
exception occurs?
Comment 3 Jana Maleckova 2007-04-25 12:31:22 UTC
NetBeans IDE Dev (Build 070425)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Description:
============
if form is reloaded(ctrl-r), no already created action can be edited.
1. create JDA
2. do reload of main gui
3. invoke AE for some predefined action and press OK
An exception is thrown and no changes are saved.
workaround: restart IDE
Comment 4 Joshua Marinacci 2007-05-19 00:08:38 UTC
I have just submitted a fix for this.  The action manager was keeping references to old RADComponents 
from the previous instance of the form model when the form is reloaded. Now the ActionManager will 
detect when a form is reloaded and remove it's old references.
Comment 5 Jana Maleckova 2007-06-11 16:39:23 UTC
verified on
Product Version: NetBeans IDE Dev (Build 200706101800) Java: 1.6.0_02-ea; Java
HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on
x86; Cp1252; en_GB (nb) Userdir: D:\userdir60