Bug 28675

Summary: NPE in indexer
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-12-19 10:47:32 EST
20021217
i got this when running my tests

java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.impl.CompilerOptions.<init>
(CompilerOptions.java:180)
	at org.eclipse.jdt.internal.core.search.indexing.SourceIndexer.indexFile
(SourceIndexer.java:64)
	at org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer.index
(AbstractIndexer.java:558)
	at org.eclipse.jdt.internal.core.index.impl.Index.add(Index.java:101)
	at 
org.eclipse.jdt.internal.core.search.indexing.AddCompilationUnitToIndex.indexDoc
ument(AddCompilationUnitToIndex.java:28)
	at org.eclipse.jdt.internal.core.search.indexing.AddFileToIndex.execute
(AddFileToIndex.java:47)
	at org.eclipse.jdt.internal.core.search.processing.JobManager.run
(JobManager.java:333)
	at java.lang.Thread.run(Thread.java:485)
Comment 1 Philipe Mulet CLA 2002-12-20 05:23:19 EST
Smells like the JavaCore plugin is null. Are you sure you did run your test as 
a plugin test ? It works fine for us.
Comment 2 Adam Kiezun CLA 2002-12-20 05:42:49 EST
yes, i'm pretty sure that ran them normally - but i have never seen that 
problem before or after
Comment 3 Philipe Mulet CLA 2002-12-20 10:22:57 EST
Or are you still using the same JIT ?
Comment 4 Adam Kiezun CLA 2002-12-20 10:36:35 EST
no, i switched to sun 1.3.1_01 or something
but that might've been only after i'd entered this report
Comment 5 Philipe Mulet CLA 2003-01-08 06:37:21 EST
The offending line cannot throw a NPE, unless the JDK lib/jit is answering null 
entries in Sets.
Comment 6 Philipe Mulet CLA 2003-01-08 06:37:39 EST
Closing as a VM bug