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.

Bug 226066 - NullPointerException at org.netbeans.modules.j2ee.common.ui.MissingDatabaseConnectionWarning.addDatabaseConnection
Summary: NullPointerException at org.netbeans.modules.j2ee.common.ui.MissingDatabaseCo...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-13 14:23 UTC by muellermi
Modified: 2013-06-14 01:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 198567


Attachments
stacktrace (7.17 KB, text/plain)
2013-02-13 14:23 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2013-02-13 14:23:28 UTC
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)
Comment 1 muellermi 2013-02-13 14:23:30 UTC
Created attachment 131348 [details]
stacktrace
Comment 2 muellermi 2013-02-13 14:35:01 UTC
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.
Comment 3 Martin Janicek 2013-06-13 08:06:40 UTC
Fixed in: web-main #20fe5a5c81ec
Comment 4 Quality Engineering 2013-06-14 01:59:47 UTC
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