Skip to content

Commit

Permalink
NPE in SemanticHighlightingReconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveeclipse committed Feb 14, 2024
1 parent 2d12901 commit b4f395c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ private void updatePresentation(TextPresentation textPresentation, List<Position
IDocument document= fSourceViewer.getDocument();
display.asyncExec(() -> {
// check Editor not reused otherwise meanwhile
if (document == fSourceViewer.getDocument()) {
if (fSourceViewer != null && document == fSourceViewer.getDocument()) {
runnable.run();
}
});
Expand Down

0 comments on commit b4f395c

Please sign in to comment.