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.
Each watch has null value in automated tests running with latest build (hudson 1641).
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)
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.
*** Issue 109464 has been marked as a duplicate of this issue. ***
Reproduced. This seems to be a random issue...
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
verified