Summary: | NullPointerException at ClassFileStruct.u2At | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Scott Ellis <sellis> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.2 | ||
Target Milestone: | 3.2 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Scott Ellis
2005-08-16 12:03:26 EDT
Would you have steps to reproduce? This would mean that the byte array is null. No, sorry, I don't have repro steps. Seems to have just come out of the blue. This can potentially happen if the binary contents cannot be retrieved for a document. byte[] contents = this.document.getByteContents(); can return null if a IOException occurs while retrieving the contents. So the binary indexer should be protected against this. I will add a null check. If you get it repeatedly, then it could be interesting to run in debug mode and enable the following options: # Reports background indexer activity: indexing, saving index file, index queries org.eclipse.jdt.core/debug/indexmanager=true # Reports background indexer activity: indexing, saving index file, index queries org.eclipse.jdt.core/debug/indexmanager=true in the .options file of the JDT/Core plugin. Then put this file in the same directory than the eclipse.exe that you are using. and restart with -debug on the Eclipse command line. Fixed and released in HEAD. No regression tests added as this could only happen if a IOException occurs while retrieving the contents of a search document. Verified using I20050920-0010 for 3.2M2 |