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 - java.lang.NullPointerException
Summary: java.lang.NullPointerException
Status: CLOSED 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: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 108873
  Show dependency tree
 
Reported: 2007-09-15 06:16 UTC by pepeio
Modified: 2010-04-29 09:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 2696


Attachments
stacktrace (1.42 KB, text/plain)
2007-09-15 06:16 UTC, pepeio
Details
stacktrace (1.42 KB, text/plain)
2007-11-05 01:26 UTC, wobster
Details

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