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.
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)
Created attachment 40961 [details] 101142
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?
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
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.
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