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.
Have the Properties dialog open from View -> Properties. Make a Database connection, the properties dialog shows properties for the connection. Right click on the connection & delete the connection. Properties dialog is not reset & properties for the deleted connection are still shown. Click on any of these properties, it throws NPE Fri Jan 11 12:17:07 PST 2002: java.lang.NullPointerException: <no message> Annotation: Invalid value. The property Batch updates could not be set. Reason: null java.lang.NullPointerException at sun.beans.editors.BoolEditor.getAsText(BoolEditor.java:33) at org.openide.explorer.propertysheet.PropertyPanel.getWriterComponent(PropertyPanel.java:904) at org.openide.explorer.propertysheet.PropertyPanel.setWriteState(PropertyPanel.java:434) [catch] at org.openide.explorer.propertysheet.PropertyPanel$5.run(PropertyPanel.java:1654) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154) at java.awt.EventQueue.dispatchEvent(EventQueue.java:337) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
This happened only if the connection node is "connected". If the connection to the database is closed and the delete action is called after it the properties window is reset. Delete action should be enabled on "disconnected" node only.
Fixed. Delete action is now enabled on "disconnected" node only. In the future it should be enabled on "connected" node too and user should be ask if s/he wants to close the connection before the delete action. If not, the connection node will not be deleted. To delete "connected" connection node without disconectiong isn't much clear. (Will be investigated for new database module based on MDR)
Verified in main trunk
Resolved for 3.3.x or earlier, no new info since then -> closing.