Summary: | Null pointer exception loading from respository | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Tod Creasey <Tod_Creasey> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Tod Creasey
2003-02-14 14:41:08 EST
Offending line was 'message' variable declaration. public void aboutToCompile(SourceFile unit) { String message = Util.bind("build.compiling", unit.resource.getFullPath ().removeLastSegments(1).makeRelative().toString()); //$NON-NLS-1$ subTask(message); } unit.resource.getFullPath().removeLastSegments(1).makeRelative().toString() The resource field of a sourceFile is initialized in the constructor and never changed so it cannot be null. None of the methods sent afterwards ever answer null. Tod was running the problematic VM from last spring which produced numerous non- reproduceable NPE. Closing. |