Bug 74971 - Class usages search (CTRL-SHIFT-G) fails with an exception
Summary: Class usages search (CTRL-SHIFT-G) fails with an exception
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 12:26 EDT by Frederik Heick CLA
Modified: 2004-11-04 10:21 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Heick CLA 2004-09-24 12:26:58 EDT
I have a class called 'Entry'; a simple VO class.
I pressed CTRL-SHIFT-G to find out where it were used, and Eclipse failed the 
search with a exception popup box.

An internal error occurred during: "Java Search".
java.lang.NullPointerException
org.eclipse.jdt.internal.core.search.indexing.IndexManager.getIndex
(IndexManager.java:183)
org.eclipse.jdt.internal.core.search.PatternSearchJob.getIndexes
(PatternSearchJob.java:90)
org.eclipse.jdt.internal.core.search.PatternSearchJob.execute
(PatternSearchJob.java:58)
org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob
(JobManager.java:253)
org.eclipse.jdt.core.search.SearchEngine.findMatches(SearchEngine.java:457)
org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:761)
org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:125)
org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run
(InternalSearchUI.java:83)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Comment 1 Markus Keller CLA 2004-09-24 12:43:27 EDT
Which build?
Comment 2 Olivier Thomann CLA 2004-09-24 12:57:33 EDT
And what VM are you using?
With JIT enabled or not?
Comment 3 Frederik Heick CLA 2004-09-26 17:40:04 EDT
Eclipse
  Version: 3.1.0
  Build id: 200408122000

Jit is on

java 1.4.2_02
Comment 4 Frederik Heick CLA 2004-09-26 17:48:48 EDT
Funny thing...

I cannot reproduce the failure again.
Selecting classname and pressing CTRL-SHIFT-G, everything seems to work
fine now. Odd

Hope I didnt waste to much of your time, but anyway the failure did occur 
last night.


Comment 5 Frederic Fusier CLA 2004-10-28 04:34:39 EDT
Close as not reproducible