Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-09-05 03:08:29 -0400
committerLars Vogel2017-09-06 03:45:43 -0400
commitb3ee795c0b366f5254afb46c633640b78bb06a0a (patch)
treebfd0c610fa4c581a1cc6a778fe1118a536aa8040
parentca148024b8db19631e75d7aa6792437b8725a3ac (diff)
downloadeclipse.platform.text-b3ee795c0b366f5254afb46c633640b78bb06a0a.tar.gz
eclipse.platform.text-b3ee795c0b366f5254afb46c633640b78bb06a0a.tar.xz
eclipse.platform.text-b3ee795c0b366f5254afb46c633640b78bb06a0a.zip
Bug 521850 - Added null guard, text widget might be disposedI20170908-0035I20170907-2000I20170906-2000I20170906-0815
Formatting: Use brackets for single statements Change-Id: Ic8c76418b8c7b44d50c94c94be55b40bf67e089e Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-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