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.
Build: NetBeans IDE Dev (Build 201003290201) VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07 OS: Windows 7 Stacktrace: java.lang.NullPointerException at javax.swing.plaf.basic.BasicTreeUI$Handler.isActualPath(BasicTreeUI.java:3421) at javax.swing.plaf.basic.BasicTreeUI$Handler.mouseReleasedDND(BasicTreeUI.java:3589) at javax.swing.plaf.basic.BasicTreeUI$Handler.mouseReleased(BasicTreeUI.java:3562) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
Created attachment 96180 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=149970
Reassigning to default owner.
Swing bug? Seems to occur while adding a Maven dependency but not clear what the relation is.
Related: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6505523 The exception seems to be triggered if some node in a tree is removed or modified during DND operation (see the mouseReleasedDND in the stacktrace). Though I don't know why a DND operation is assumed to be in progress here. I think this needs to be fixed in our code. Perhaps DependenciesNode.actionPerformed could perform the code which shows the AddDependencyPanel in a separate thread, or using invokeLater?
Don't see anything wrong in current code. What benefit would there be to creating the dialog "later"? Anyway seems to be uncommon.
Dup of Bug 196006 ?
*** This bug has been marked as a duplicate of bug 196006 ***