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.
A NPE was thrown when pressing cancel in New Database Connection Wizard. Steps: 1. Create a J2EE 1.4 web app 2. Invoke New Persistence Unit Wizard 3. Choose 'New Connection' from the wizard's database connection combo box 4. Press cancel in the opened wizard => NPE is thrown. java.lang.NullPointerException at org.netbeans.modules.db.explorer.DatabaseConnection.toString(DatabaseConnection.java:667) at org.netbeans.modules.db.explorer.DatabaseConnection.equals(DatabaseConnection.java:622) at org.netbeans.modules.db.explorer.ConnectionList.getConnection(ConnectionList.java:86) at org.netbeans.modules.db.explorer.actions.ConnectUsingDriverAction$NewConnectionDialogDisplayer.showDialog(ConnectUsingDriverAction.java:301) at org.netbeans.modules.db.explorer.actions.ConnectUsingDriverAction$NewConnectionDialogDisplayer.showDialog(ConnectUsingDriverAction.java:103) at org.netbeans.api.db.explorer.ConnectionManager$1.run(ConnectionManager.java:163) ...
Created attachment 32417 [details] stacktrace
Probably forgot to check for null when returning the connection for issue 80629, easy to fix.
The cause seems to be different, can't reproduce under debugger. Seems to be a http://en.wikipedia.org/wiki/Heisenbug.
Fixed. Checking in src/org/netbeans/modules/db/explorer/DatabaseConnection.java; /cvs/db/src/org/netbeans/modules/db/explorer/DatabaseConnection.java,v <-- DatabaseConnection.java new revision: 1.39.2.2.2.5; previous revision: 1.39.2.2.2.4 done
v.