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.
This bug was originally marked as duplicate of bug 167914, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201302122300) VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20 OS: Windows 8 User Comments: muellermi: trying to resolve 2nd Data Source Stacktrace: java.lang.NullPointerException at org.netbeans.modules.j2ee.common.ui.MissingDatabaseConnectionWarning.addDatabaseConnection(MissingDatabaseConnectionWarning.java:375) at org.netbeans.modules.j2ee.common.ui.MissingDatabaseConnectionWarning.jButtonAddConnectionActionPerformed(MissingDatabaseConnectionWarning.java:241) at org.netbeans.modules.j2ee.common.ui.MissingDatabaseConnectionWarning.access$100(MissingDatabaseConnectionWarning.java:82) at org.netbeans.modules.j2ee.common.ui.MissingDatabaseConnectionWarning$1.actionPerformed(MissingDatabaseConnectionWarning.java:224) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
Created attachment 131348 [details] stacktrace
Usually, when NB opens the resolve data source dialog, the data soucre is selected. In this case, two data sources had to be resolved. After resolving the first one, as far as I remember, the second had not been selected. This might have caused the crash.
Fixed in: web-main #20fe5a5c81ec
Integrated into 'main-golden', will be available in build *201306132301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/20fe5a5c81ec User: Martin Janicek <mjanicek@netbeans.org> Log: #226066 - NullPointerException at org.netbeans.modules.j2ee.common.ui.MissingDatabaseConnectionWarning.addDatabaseConnection