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 - [tests] Types of object watches created during debugging are null
Summary: [tests] Types of object watches created during debugging are null
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: RANDOM
: 109464 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-12 07:19 UTC by ehucka
Modified: 2007-07-24 11:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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