Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
index 3b72ef096..7c9377d1c 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
@@ -6566,9 +6566,9 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit
}
private void updateCaret() {
-
- if (fSourceViewer == null)
+ if (fSourceViewer == null || fSourceViewer.getTextWidget() == null) {
return;
+ }
StyledText styledText= fSourceViewer.getTextWidget();

Back to the top