diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java index a92a05d8be8..72880716f8b 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java @@ -512,7 +512,7 @@ private void updatePresentation(TextPresentation textPresentation, List { // check Editor not reused otherwise meanwhile - if (document == fSourceViewer.getDocument()) { + if (fSourceViewer != null && document == fSourceViewer.getDocument()) { runnable.run(); } });