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 56052 - NPE when finishing debugger session
Summary: NPE when finishing debugger session
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-03-07 13:08 UTC by Milan Kubec
Modified: 2006-03-24 13:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (1.01 KB, text/plain)
2005-03-07 13:50 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-03-07 13:08:41 UTC
[dev-200503061900, JDK 1.5.0_02]

I was debugging simple two threaded java
application and after clicking Finish debugging
session I got NPE.


java.lang.NullPointerException
	at
org.openide.explorer.view.VisualizerNode.<init>(VisualizerNode.java:143)
	at
org.openide.explorer.view.VisualizerNode.getVisualizer(VisualizerNode.java:98)
	at
org.openide.explorer.view.VisualizerNode.getVisualizer(VisualizerNode.java:75)
	at
org.openide.explorer.view.TreeView.expandNode(TreeView.java:445)
...
Comment 1 Petr Nejedly 2005-03-07 13:48:34 UTC
ExpandNode got a null Node to expand, I'll add a guarding if() there.
Could you please post complete stack trace?
Comment 2 Milan Kubec 2005-03-07 13:50:00 UTC
Created attachment 20713 [details]
exc stack trace
Comment 3 Milan Kubec 2005-03-07 13:50:33 UTC
Attached, sorry.
Comment 4 Petr Nejedly 2005-03-07 14:17:42 UTC
And the null comes from ....
  org.netbeans.modules.viewmodel.TreeTable.expandNode
Comment 5 Petr Nejedly 2005-03-07 15:27:00 UTC
Just added the promised early check to the TreeView.
Next time it will be more visible where the problem is comming from.

openide/src/org/openide/explorer/view/TreeView.java,v1.186
Comment 6 Roman Ondruska 2005-03-29 08:12:45 UTC
We will look at it.
Comment 7 Martin Entlicher 2005-10-07 12:55:00 UTC
Can not happen any more - it's already fixed in the code.
Comment 8 Milan Kubec 2005-10-17 12:30:17 UTC
Haven't seen for long time - verified.