Bug 87138 - Null pointer exception
Summary: Null pointer exception
Status: RESOLVED DUPLICATE of bug 83083
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: ---   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-04 09:10 EST by david marcus CLA
Modified: 2005-03-06 14: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 david marcus CLA 2005-03-04 09:10:21 EST
Running version 3.1M5a (fresh install)

Checked out my projects from CVS.

Performed a search for references to a public method of a class.

Eclipse showed an 'internal error' dialog box with no details.

The Eclipse log showed:

!ENTRY org.eclipse.core.runtime 4 2 2005-03-04 09:05:55.125
!MESSAGE An internal error occurred during: "Java Search".
!STACK 0
java.lang.NullPointerException
	at 
org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding.boundCheck
(TypeVariableBinding.java:73)
	at 
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.resolve
(ParameterizedTypeBinding.java:632)
	at 
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType
(BinaryTypeBinding.java:53)
	at 
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.superclass
(BinaryTypeBinding.java:774)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.detectHierarchyCycle
(ClassScope.java:957)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.detectHierarchyCycle
(ClassScope.java:919)
	at 
org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding
(SingleTypeReference.java:42)
	at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType
(TypeReference.java:141)
	at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType
(TypeReference.java:104)
	at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype
(ClassScope.java:1051)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass
(ClassScope.java:710)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy
(ClassScope.java:846)
	at 
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierar
chy(CompilationUnitScope.java:243)
	at 
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings
(LookupEnvironment.java:195)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:864)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:928)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:1045)
	at 
org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches
(JavaSearchParticipant.java:94)
	at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches
(BasicSearchEngine.java:196)
	at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search
(BasicSearchEngine.java:382)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:512)
	at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run
(JavaSearchQuery.java:131)
	at 
org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run
(InternalSearchUI.java:93)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
Comment 1 Philipe Mulet CLA 2005-03-04 11:09:01 EST
Please provide exact steps to reproduce.
Comment 2 david marcus CLA 2005-03-05 08:40:50 EST
Problem not reproducible on demand. It occurred as part of normal use.

I highlighted the 'public' method name I was searching for, then pressed shift-
control-g to initiate a search.

Search ran for a bit then terminated with the error message box. The attached 
log extract showed the stack stack trace for the error.

My workspace consists of ~50 projects with several thousand files combined.
Comment 3 Kent Johnson CLA 2005-03-06 14:21:51 EST

*** This bug has been marked as a duplicate of 83083 ***