Bug 28675 - NPE in indexer
Summary: NPE in indexer
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-19 10:47 EST by Adam Kiezun CLA
Modified: 2003-01-08 06:37 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 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