Community
Participate
Working Groups
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
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