Summary: | NPE due to CompilationUnit.getContents() returning null | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jess Garms <jgarms> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | frederic_fusier, jerome_lanneluc |
Version: | 3.1.2 | ||
Target Milestone: | 3.2 RC2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=562436 | ||
Whiteboard: |
Description
Jess Garms
2006-02-28 12:58:35 EST
+1 for 3.2RC2 Indeed the only path that can lead to null being returned is if the compilation unit's buffer is closed while getContents() runs. Added null check in CompilationUnit#getContents() in the case of #IBuffer#getCharacters() returning null. In this case, returns an empty char array. Cannot add a test case since this is a timing issue. Verified with I20060427-1600 for 3.2RC2 |