Summary: | [search] NPE during search | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rafael Chaves <eclipse> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | morten-eclipse |
Version: | 3.1 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Rafael Chaves
2005-04-04 19:11:45 EDT
Note that looking for the references in the same project, the NPE does not occur. Looking for references in the workspace (the method is private static), causes the NPE. I soon started having problems searching for references to other methods (not sure was looking in the same project or the entire workspace), so I had to restart Eclipse. I haven't seen the problem since then. Raphael, Looking at code + the fact that you cannot reproduce it sounds more as a VM issue rather than a code issue. Line 217 is: if (isPrivate && !CharOperation.equals(method.declaringClass.sourceName, focus.getParent().getElementName().toCharArray())) { I've verified that: 1) method cannot be null and same for its declaringClass 2) focus cannot be null + Java Model insure that all elements have parent and name (otherwise all JDT/Core would dump multiple NPEs...). As you cannot reproduce, I will put this bug in REMIND and let you reopen it as soon as you see this issue again with hopefully a detailed test case to reproduce it. TIA Reopen as I got one reproduceable example in duplicate bug. *** This bug has been marked as a duplicate of 92315 *** |