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 115624

Summary: java.lang.NullPointerException
Product: debugger Reporter: pepeio <pepeio>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=2696
Issue Type: DEFECT Exception Reporter: 2696
Bug Depends on:    
Bug Blocks: 108873    
Attachments: stacktrace
stacktrace

Description pepeio 2007-09-15 06:16:08 UTC
Build: NetBeans IDE Dev (Build 200708280000)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows XP, 5.1, x86

User Comments: 
i was hovering over my sources (breakpoint got hit)
Comment 1 pepeio 2007-09-15 06:16:41 UTC
Created attachment 48877 [details]
stacktrace
Comment 2 Martin Entlicher 2007-09-17 14:51:24 UTC
It seems like ctx.typeContext is null. typeContext is null when the instanceContext is null.

I can reproduce that on expression "getTestNull().field", where method getTestNull() returns null.
Comment 3 wobster 2007-11-05 01:26:37 UTC
Build: NetBeans IDE Dev (Build 200711040000)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Windows XP, 5.1, x86

User Comments: 
Comment 4 wobster 2007-11-05 01:26:41 UTC
Created attachment 52492 [details]
stacktrace
Comment 5 Martin Entlicher 2007-12-13 13:46:57 UTC
Fixed in the new evaluator implementation:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.12; previous revision: 1.11

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluationException2.java,v  <-- 
EvaluationException2.java
new revision: 1.7; previous revision: 1.6

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/EvaluatorVisitor.java,v  <-- 
EvaluatorVisitor.java
new revision: 1.11; previous revision: 1.10
Comment 6 Martin Entlicher 2007-12-13 17:17:20 UTC
Fixed in the new evaluator algorithm - see issue #108873.
Comment 7 Quality Engineering 2010-04-29 09:35:12 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.