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.
I create JFrame and add JDialog to it. Then I try to delete JDialog but it throws IllegalArgumentException. I attach relevant log file. java.lang.IllegalArgumentException: No element of a node selection may be null. at org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.checkArgumentIsValid(ExplorerManager.java:191) at org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.run(ExplorerManager.java:246) at org.openide.util.Mutex.readAccess(Mutex.java:287) at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:253) at org.netbeans.modules.form.FormDesigner$2.propertyChange(FormDesigner.java:218) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:341) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270) at java.awt.Component.firePropertyChange(Component.java:7159) at org.openide.windows.TopComponent.setActivatedNodes(TopComponent.java:253) at org.netbeans.modules.form.FormDesigner.updateComponentInspector(FormDesigner.java:1134) at org.netbeans.modules.form.FormEditor$5.formChanged(FormEditor.java:644) at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:979) [catch] at org.netbeans.modules.form.FormModel$EventBroker.run(FormModel.java:1079) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(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)
Sorry, but i could not reproduce the problem. Are you still able to reproduce it? If so, could you, please, provide more detailed steps to reproduce it. It would be ideal to attach the corresponding .java and .form files (saved in the last good state) and describe the exact steps that lead to the exception. Some informaton about the build you are using could also be useful. Thank you in advance.
This problem still happen.(I download latest daily build 200601012030.) I explain how to reproduce this problem detail. 1. create new java project. 2. create some package. (I create test package) 3. create JFrame 4. add JDialog to JFrame 5. add some JLabel and JTextField to JDialog. 6. compile 7. delete JDialog from Inspector view's Other Components.
Created attachment 28127 [details] java source file.
Created attachment 28128 [details] form file.
now i could reproduce it. thanks.
Please, fix this issue in 5.0 branch also.
Fixed in trunk. The mentioned exception was just an aftereffect caused by a NPE in FormDesigner.highlightTopDesignComponentName(boolean bl). There also should be a check if the node reference isn't null. Checking in FormDesigner.java; /cvs/form/src/org/netbeans/modules/form/FormDesigner.java,v <-- FormDesigner.java new revision: 1.173; previous revision: 1.172
diff http://form.netbeans.org/source/browse/form/src/org/netbeans/modules/form/FormDesigner.java?r1=1.172&r2=1.173
The diff looks ok.
Verified in the trunk (200601021900) build by described testcase.
Integrated into release50 branch.
Verified in the build 200601042030