Bug 92315 - [search] NPE in MethodLocator.matchReportReference
Summary: [search] NPE in MethodLocator.matchReportReference
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 90233 92115 92890 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-21 18:57 EDT by Dirk Baeumer CLA
Modified: 2005-05-12 10:33 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2005-04-21 18:57:12 EDT
 
Comment 1 Dirk Baeumer CLA 2005-04-21 18:58:39 EDT
java.lang.NullPointerException
at
org.eclipse.jdt.internal.core.search.matching.MethodLocator.matchReportReference(MethodLocator.java:218)
at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:1792)
at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:2056)
at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:1859)
at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.process(MatchLocator.java:1397)
at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:932)
at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:973)
at
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1075)
at
org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:94)
at
org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:208)
at
org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:394)
at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:532)
at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:135)
at
org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:93)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)

Search for references to method TypeInfoViewer#add(int ticket, final Object
element) in workspace.
Comment 2 Frederic Fusier CLA 2005-04-22 12:20:36 EDT
*** Bug 92115 has been marked as a duplicate of this bug. ***
Comment 3 Frederic Fusier CLA 2005-04-22 12:21:36 EDT
*** Bug 90233 has been marked as a duplicate of this bug. ***
Comment 4 Frederic Fusier CLA 2005-04-22 12:22:52 EDT
NPE comes from a null binding on potential matches...
Comment 5 Frederic Fusier CLA 2005-04-22 14:03:09 EDT
Fixed and released in HEAD.

I still haven't find a test case for this bug I can put in our test suite. I'll
add it later when I'm able to do it...
Comment 6 Frederic Fusier CLA 2005-04-27 06:05:35 EDT
*** Bug 92890 has been marked as a duplicate of this bug. ***
Comment 7 Maxime Daniel CLA 2005-05-12 10:29:26 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.