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 70361

Summary: Evaluator: Exception setting a watch
Product: debugger Reporter: Unknown <non_migrated_user>
Component: JavaAssignee: issues@debugger <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 108873    

Description Unknown 2005-12-13 19:00:02 UTC
Running a project in debug and setting a watch yields:

> NB: 200512072015 
> JDK: 1.5.0_06 
> OS: Debian Sarge 
> 
> java.lang.NullPointerException 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.getEnclosingObject
(Evaluator.java:1353) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.visitPrimarySuffix
(Evaluator.java:1341) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.visit(Evaluator.java:151) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.SimpleNode.jjtAccept
(SimpleNode.java:59) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.visitPrimaryExpression
(Evaluator.java:1463) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.visit(Evaluator.java:145) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.SimpleNode.jjtAccept
(SimpleNode.java:59) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.visitExpression
(Evaluator.java:1478) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.visit(Evaluator.java:142) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.SimpleNode.jjtAccept
(SimpleNode.java:59) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.expr.Evaluator.evaluate
(Evaluator.java:78) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.evaluateIn
(JPDADebuggerImpl.java:589) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.evaluateIn
(JPDADebuggerImpl.java:518) 
> 
>     at 
> 
org.netbeans.modules.debugger.jpda.models.WatchesModel$JPDAWatchEvaluating.getV
alue(WatchesModel.java:332) 
> 
>     at 
> 
org.netbeans.modules.debugger.jpda.models.WatchesModel$JPDAWatchEvaluating.getT
ype(WatchesModel.java:309) 
> 
>     at 
> 
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getFilter
(VariablesTreeModelFilter.java:454) 
> 
>     at 
> 
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.access$10
0(VariablesTreeModelFilter.java:59) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter$4.run
(VariablesTreeModelFilter.java:289) 
> 
>     at 
> org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.run
(VariablesTreeModelFilter.java:133) 
> 
>     at 
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) 
> [catch] at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926) 
>
Comment 1 Martin Entlicher 2005-12-14 09:36:56 UTC
Thanks for the report. StackFrame.thisObject() can return null in some
circumstances, but the code does not count with that.
Comment 2 Martin Entlicher 2007-12-13 17:14:59 UTC
Fixed in the new evaluator algorithm - see issue #108873.
Comment 3 Quality Engineering 2010-04-29 09:27:50 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.