Bug 196974 - [search] NPE in java search
Summary: [search] NPE in java search
Status: VERIFIED DUPLICATE of bug 166093
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4 M1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-18 11:16 EDT by Michael Rennie CLA
Modified: 2007-08-03 10:18 EDT (History)
0 users

See Also:


Attachments
screen cap (232.52 KB, image/png)
2007-07-18 11:18 EDT, Michael Rennie CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2007-07-18 11:16:42 EDT
while trying to debug 196940 I stumbled across an NPE while trying to execute a java search using Ctrl+Shift+G.

steps:
1. opened JavaStructureCreator.class
2,.selected method createStructureComparator (see attached screen cap)
3. executed the keyboard command Ctrl+Shift+G and got the following exception:

java.lang.NullPointerException
at org.eclipse.jdt.internal.core.search.matching.MethodLocator.matchReportReference(MethodLocator.java:339)
at org.eclipse.jdt.internal.core.search.matching.PatternLocator.matchReportReference(PatternLocator.java:409)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:2050)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:2456)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportMatching(MatchLocator.java:2203)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.process(MatchLocator.java:1543)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1020)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1061)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1183)
at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:94)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:217)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:497)
at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:550)
at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:143)
at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:94)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Michael Rennie CLA 2007-07-18 11:18:29 EDT
Created attachment 74061 [details]
screen cap
Comment 2 Frederic Fusier CLA 2007-07-18 11:33:28 EDT
Michael, are you using compliance 1.4 with JRE 1.5 or 1.6 on this project?
Comment 3 Michael Rennie CLA 2007-07-18 11:49:56 EDT
yes, I am using compliance 1.4 and sun 1.6u1 vm
Comment 4 Frederic Fusier CLA 2007-07-18 12:14:27 EDT

*** This bug has been marked as a duplicate of bug 166093 ***
Comment 5 Frederic Fusier CLA 2007-08-03 10:18:05 EDT
Verified for 3.4M1 using build I20070802-0800.