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

Summary: Clicking on the varibale in the watches window throws NPE viewmodel.Models$DelegatingTreeModel.getChildrenCount
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: DebuggerAssignee: Michal Skvor <misk>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=159147
Issue Type: DEFECT Exception Reporter: 159147
Bug Depends on:    
Bug Blocks: 173187    
Attachments: stacktrace

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)