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 109465

Summary: [tests] Types of object watches created during debugging are null
Product: debugger Reporter: ehucka <ehucka>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: blocker Keywords: RANDOM
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2007-07-12 07:19:18 UTC
Each watch has null value in automated tests running with latest build (hudson 1641).
Comment 1 ehucka 2007-07-12 07:38:08 UTC
It is manualy reproducible. It throws an NPE too:

java.lang.NullPointerException
        at org.netbeans.modules.debugger.jpda.models.WatchesModel$JPDAWatchEvaluating.getType(WatchesModel.java:340)
        at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getFilter(VariablesTreeModelFilter.java:447)
        at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:366)
        at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:937)
        at
org.netbeans.modules.debugger.jpda.ui.models.BoldVariablesTableModelFilterFirst.getValueAt(BoldVariablesTableModelFilterFirst.java:53)
        at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:937)
        at org.netbeans.spi.viewmodel.Models$CompoundModel.getValueAt(Models.java:2879)
        at org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.evaluateLazily(TreeModelNode.java:852)
        at org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:1061)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 2 ehucka 2007-07-12 07:46:13 UTC
It seems the NPE is thrown and watch with null in Type column is created only when an Object type watch is created
during debugging. The watch is browsable. After restart of debugging it is repaired.
Comment 3 ehucka 2007-07-12 07:59:22 UTC
*** Issue 109464 has been marked as a duplicate of this issue. ***
Comment 4 Martin Entlicher 2007-07-12 08:35:47 UTC
Reproduced. This seems to be a random issue...
Comment 5 Martin Entlicher 2007-07-12 08:46:50 UTC
There was still one place where forgot to retrieve the evaluated watch, after the fix of issue #109275.

It's fixed now:
/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/WatchesModel.java,v  <-- 
WatchesModel.java
new revision: 1.40; previous revision: 1.39
Comment 6 ehucka 2007-07-24 11:19:24 UTC
verified