Summary: | NPE in JDTCompilerAdapter | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rodrigo Peretti <rodrigo> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0 M6 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Rodrigo Peretti
2002-05-03 17:12:26 EDT
Indeed the code should be: IPath jre_lib = JavaCore.getClasspathVariable("JRE_LIB"); //$NON-NLS-1$ if (jre_lib == null) { throw new BuildException(Util.bind ("ant.jdtadapter.error.missingJRELIB")); //$NON-NLS- 1$ } ....jre_lib.toOSString(); If the jre_lib entry is not set, JavaCore.getClasspathVariable("JRE_LIB") returns null and then toOSString() throws a NPE. Fixed and released in HEAD. |