Summary: | [5.0] NPE in SourceTypeConverter | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Tobias Widmer <tobias_widmer> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | nikolaymetchev |
Version: | 3.1 | ||
Target Milestone: | 3.3 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Tobias Widmer
2005-05-27 10:26:11 EDT
The NPE can happen only if the field 'parser' is null. Howver it is set to a non-null value 2 lines above, and no other code would set it to null. Suspecting a VM problem. What VM are you runinng Eclipse on ? I was running in an old test workspace with an old vm: java.fullversion=J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20040831 (JIT enabled) J9VM - 20040827_2136_lHdSMR JIT - r7_level20040827_1801 If the other candidates (memberValue and this.unit) are guaranteed to be non- null, close the bug 'memberValue' and 'this.unit' could not cause a NPE on this line. Closing as VM bug. It happened again in 3.2 RC4 (see bug 142506). After a second look at the code, the NPE can happen if 'memberValue' is null since we're getting its length. Reopening *** Bug 150520 has been marked as a duplicate of this bug. *** This looks like the same bug as this https://bugs.eclipse.org/bugs/show_bug.cgi?id=168088 the line numbers changed but the call chain is the same Thanks Scott. This indeed looks like a dup. *** This bug has been marked as a duplicate of bug 168088 *** |