Bug 31662 NPE in CompilationUnitDocumentProvider$CompilationUnitAnnotationModel
I got two the same NPE (yesterday and this morning). One in the log file, one time in the console. That happened when I started my test runtime workbench. From the log: !ENTRY org.eclipse.core.resources 4 2 Feb 11, 2003 16:09:02.16 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.removeMarkerOver lays(CompilationUnitDocumentProvider.java:484) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.endReporting(Com pilationUnitDocumentProvider.java:471) at org.eclipse.jdt.internal.core.WorkingCopy.reconcile(WorkingCopy.java:454) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.update(Compilati onUnitDocumentProvider.java:390) at org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel$ResourceDeltaVisitor.visit(ResourceMarkerAnnotationModel.java: 68) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:71) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79) at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:52) at org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel$ResourceChangeListener.resourceChanged(ResourceMarkerAnnotatio nModel.java:52) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:137) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:867) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:152) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:67) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:161) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:892) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1593) at org.eclipse.debug.core.model.Breakpoint.setAttributes(Breakpoint.java:218) at org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.configureAtStartup(JavaBreakpoint.java:776) at org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint.setMarker(JavaBreakpoint.java:154) at org.eclipse.debug.internal.core.BreakpointManager.createBreakpoint(BreakpointManager.java:382) at org.eclipse.debug.internal.core.BreakpointManager.loadBreakpoints(BreakpointManager.java:133) at org.eclipse.debug.internal.core.BreakpointManager.initializeBreakpoints(BreakpointManager.java:285) at org.eclipse.debug.internal.core.BreakpointManager.getBreakpoints0(BreakpointManager.java:256) at org.eclipse.debug.internal.core.BreakpointManager.getBreakpoint(BreakpointManager.java:235) at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getConfiguredPresentation(DelegatingModelPresentation.java:2 29) at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getImage(DelegatingModelPresentation.java:103) at org.eclipse.jdt.internal.ui.javaeditor.JavaMarkerAnnotation.initialize(JavaMarkerAnnotation.java:97) at org.eclipse.ui.texteditor.MarkerAnnotation.<init>(MarkerAnnotation.java:111) at org.eclipse.jdt.internal.ui.javaeditor.JavaMarkerAnnotation.<init>(JavaMarkerAnnotation.java:72) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.createMarkerAnno tation(CompilationUnitDocumentProvider.java:369) at org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel.addMarkerAnnotation(AbstractMarkerAnnotationModel.java:215) at org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel.catchupWithMarkers(AbstractMarkerAnnotationModel.java:394) at org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel.connected(AbstractMarkerAnnotationModel.java:228) at org.eclipse.jface.text.source.AnnotationModel.connect(AnnotationModel.java:139) at org.eclipse.jface.text.source.VisualAnnotationModel.connect(VisualAnnotationModel.java:70) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:364) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:337) at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:2179) at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:1980) at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:2030) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:978) at org.eclipse.ui.internal.PartPane$4.run(PartPane.java:138) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:867) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:134) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:183) at org.eclipse.ui.internal.EditorWorkbook.createPage(EditorWorkbook.java:393) at org.eclipse.ui.internal.EditorWorkbook.createControl(EditorWorkbook.java:276) at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:191) at org.eclipse.ui.internal.EditorArea.createControl(EditorArea.java:323) at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:191) at org.eclipse.ui.internal.PerspectivePresentation.activate(PerspectivePresentation.java:94) at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:717) at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:1767) at org.eclipse.ui.internal.WorkbenchWindow$7.run(WorkbenchWindow.java:1394) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:65) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:1381) at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1262) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1150) at org.eclipse.ui.internal.Workbench.access$9(Workbench.java:1110) at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1028) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:867) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState(Workbench.java:980) at org.eclipse.ui.internal.Workbench.init(Workbench.java:725) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1260) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539) From the console: java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.removeMarkerOverlays(CompilationUnitDocumentProvider.java:484) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.endReporting(CompilationUnitDocumentProvider.java:471) at org.eclipse.jdt.internal.core.WorkingCopy.reconcile(WorkingCopy.java:454) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:73) at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.initialReconcile(JavaReconcilingStrategy.java:127) at org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:104) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:155)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
initializeImages();
				return fImage;
			}
			
			/*
			 * @see IJavaAnnotation#getMessage()
			 */
			public String getMessage() {
				return fProblem.getMessage();
			}
			/*
			 * @see IJavaAnnotation#isTemporary()
			 */
			public boolean isTemporary() {
				return true;
			}
			
			/*
			 * @see IJavaAnnotation#getArguments()
			 */
			public String[] getArguments() {
				return isProblem() ? fProblem.getArguments() : null;
			}
			/*
			 * @see IJavaAnnotation#getId()
			 */
			public int getId() {
				return isProblem() ? fProblem.getID() : -1;
			}
			/*