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 173082 - Clicking on the varibale in the watches window throws NPE viewmodel.Models$DelegatingTreeModel.getChildrenCount
Summary: Clicking on the varibale in the watches window throws NPE viewmodel.Models$De...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Michal Skvor
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2009-09-25 10:44 UTC by Alexandr Scherbatiy
Modified: 2009-10-20 16:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 159147


Attachments
stacktrace (1.61 KB, text/plain)
2009-09-25 10:44 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-09-25 10:44:02 UTC
Build: NetBeans IDE Dev (Build 200909221401)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments:
sunflower: Steps to reproduce:

- Copy to the editor:
------------------------------------------------------
var a = 10;
var b = 20.5;
var c = a + b;


print(c);
-----------------------------------------------------
- Set a breakpoint to thje last line
- Start the debugger
- Go to the Watches window
- Add 'a' to the watches 
- Click on the 'a' variabble in the Watches

The NPE  pops up.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildrenCount(Models.java:1367)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilterSI.getChildrenCount(VariablesTreeModelFilterSI.java:199)
        at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildrenCount(Models.java:754)
        at org.netbeans.modules.debugger.jpda.ui.FixedWatchesManager.getChildrenCount(FixedWatchesManager.java:225)
        at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildrenCount(Models.java:754)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getChildrenCount(VariablesTreeModelFilter.java:243)
Comment 1 Alexandr Scherbatiy 2009-09-25 10:44:19 UTC
Created attachment 88341 [details]
stacktrace
Comment 2 Michal Skvor 2009-10-12 17:19:05 UTC
Fixed.
2660:9faf379a65c7
Comment 3 Lukas Hasik 2009-10-20 16:46:54 UTC
verified Product Version: NetBeans IDE 6.8 Beta (Build 200910192001)