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 202984 - NullPointerException at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection
Summary: NullPointerException at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSele...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 14:30 UTC by _ gtzabari
Modified: 2011-11-09 16:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181558


Attachments
stacktrace (2.96 KB, text/plain)
2011-10-03 14:30 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2011-10-03 14:30:52 UTC
Build: NetBeans IDE Dev (Build 201109250601)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
gtzabari: Double-clicked on node in Debugging tab stack-trace




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3571)
   at javax.swing.plaf.basic.BasicTreeUI$Handler.mouseReleasedDND(BasicTreeUI.java:3641)
   at javax.swing.plaf.basic.BasicTreeUI$Handler.mouseReleased(BasicTreeUI.java:3629)
   at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
   at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
   at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
Comment 1 _ gtzabari 2011-10-03 14:30:57 UTC
Created attachment 111422 [details]
stacktrace
Comment 2 Martin Entlicher 2011-10-16 19:21:14 UTC
It looks like getPathBounds() has returned null, which can happen (according to the comments in the code) if the model is accessed from a non-AWT thread.
I'll check whether Debugging view does some changes outside of AWT...
Comment 3 Martin Entlicher 2011-11-08 16:29:11 UTC
I've found that the activated nodes are set out of AWT thread. That can be the problem. If it was, it's fixed by changeset:   206546:328f47416bf9
http://hg.netbeans.org/main/rev/328f47416bf9
Comment 4 Quality Engineering 2011-11-09 16:08:21 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/328f47416bf9
User: mentlicher@netbeans.org
Log: #202984: Set the activated nodes in AWT.