Bug 31947 - NPE on shutdown in BlocksIndexInput.close()
Summary: NPE on shutdown in BlocksIndexInput.close()
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-15 13:52 EST by Darin Swanson CLA
Modified: 2003-03-17 10:49 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 Darin Swanson CLA 2003-02-15 13:52:51 EST
Exiting a target workspace I have been getting:

NPE on shutdown

Thread [Java indexing] (Suspended (exception NullPointerException))
	BlocksIndexInput.close() line: 54
	Index.initialize(boolean) line: 209
	Index.<init>(String, String, boolean) line: 85
	IndexManager.getIndex(IPath, boolean, boolean) line: 154
	IndexAllProject.execute(IProgressMonitor) line: 56
	IndexManager(JobManager).run() line: 345
	Thread.run() line: 536
Comment 1 Philipe Mulet CLA 2003-02-17 05:09:22 EST
Does search perform ok on next session ? We should be reindexing the affected 
pieces.
Comment 2 Kent Johnson CLA 2003-02-17 11:34:27 EST
Added protection if the underlying random access file (raf) is null. Its 
possible while initializing an index that the instVar raf was never initialized.

Marking as fixed. A reproduceable case will likely show why the index couldn't 
be initialized in the first place.