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 183067 - NullPointerException at javax.swing.plaf.basic.BasicTreeUI$Handler.isActualPath
Summary: NullPointerException at javax.swing.plaf.basic.BasicTreeUI$Handler.isActualPath
Status: CLOSED DUPLICATE of bug 196006
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-29 12:22 UTC by FrantaM
Modified: 2011-10-17 20:08 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 149970


Attachments
stacktrace (5.37 KB, text/plain)
2010-03-29 12:22 UTC, FrantaM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FrantaM 2010-03-29 12:22:26 UTC
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)
Comment 1 FrantaM 2010-03-29 12:22:30 UTC
Created attachment 96180 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-05-20 15:32:06 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=149970
Comment 3 Antonin Nebuzelsky 2010-07-30 15:18:38 UTC
Reassigning to default owner.
Comment 4 Jesse Glick 2010-08-02 16:59:43 UTC
Swing bug? Seems to occur while adding a Maven dependency but not clear what the relation is.
Comment 5 Antonin Nebuzelsky 2010-10-04 15:07:39 UTC
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?
Comment 6 Jesse Glick 2010-10-07 16:24:45 UTC
Don't see anything wrong in current code. What benefit would there be to creating the dialog "later"?

Anyway seems to be uncommon.
Comment 7 Marian Mirilovic 2011-04-18 07:38:22 UTC
Dup of Bug 196006 ?
Comment 8 Jesse Glick 2011-04-19 21:26:00 UTC

*** This bug has been marked as a duplicate of bug 196006 ***