Bug 69166 - NPE in IndexerModelListener.processDelta
Summary: NPE in IndexerModelListener.processDelta
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 15:11 EDT by Ed Burnette CLA
Modified: 2004-07-12 13:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Burnette CLA 2004-07-01 15:11:14 EDT
Eclipse 3.0 + CDT 2.0RC2
I was editing a C file and pressed Ctrl+S and got this exception. The C/C++ 
Indexer was running on another project at the time in the background.

Thread [org.eclipse.cdt.internal.ui.text.CSourceViewerConfiguration$1] 
(Suspended (exception NullPointerException))
	IndexerModelListener.processDelta(ICElementDelta) line: 66
	IndexerModelListener.processDelta(ICElementDelta) line: 97
	IndexerModelListener.elementChanged(ElementChangedEvent) line: 48
	CModelManager$1.run() line: 843
	InternalPlatform.run(ISafeRunnable) line: 615
	Platform.run(ISafeRunnable) line: 747
	CModelManager.notifyListeners(ICElementDelta, int, 
IElementChangedListener[], int[], int) line: 837
	CModelManager.fireReconcileDelta(IElementChangedListener[], int[], 
int) line: 820
	CModelManager.fire(ICElementDelta, int) line: 776
	CModelManager.fire(int) line: 738
	ReconcileWorkingCopyOperation(CModelOperation).run(IProgressMonitor) 
line: 537
	CModelManager.runOperation(CModelOperation, IProgressMonitor) line: 904
	WorkingCopy(CElement).runOperation(CModelOperation, IProgressMonitor) 
line: 342
	WorkingCopy.reconcile(boolean, IProgressMonitor) line: 300
	CReconcilingStrategy.reconcile() line: 72
	CReconcilingStrategy.reconcile(IRegion) line: 54
	CSourceViewerConfiguration$1(Reconciler).process(DirtyRegion) line: 149
	AbstractReconciler$BackgroundThread.run() line: 204
Comment 1 Bogdan Gheorghe CLA 2004-07-12 13:10:38 EDT
I couldn't reproduce this but I've added a check to make sure that we don't 
get a NPE at the same location.

Fix in both Head and 2.0 stream.

- BG