Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-06-08 07:56:09 +0000
committerLars Vogel2020-06-08 07:56:29 +0000
commita733041c6838095813815507cd6d19e7ec997e76 (patch)
treee41ed0d28d49c979aa460876cffcb892507b8913
parente6806155007d916f49c20e3f8efae4e5d03d1d10 (diff)
downloadeclipse.platform.text-a733041c6838095813815507cd6d19e7ec997e76.tar.gz
eclipse.platform.text-a733041c6838095813815507cd6d19e7ec997e76.tar.xz
eclipse.platform.text-a733041c6838095813815507cd6d19e7ec997e76.zip
Bug 563708 - Removes compiler warning of potential null
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java
index 2716e70c4..f7a24ddb2 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java
@@ -108,7 +108,9 @@ public class StatusTextEditor extends AbstractTextEditor {
if (fStackLayout.topControl != front) {
fStackLayout.topControl= front;
- front.requestLayout();
+ if (front != null) {
+ front.requestLayout();
+ }
updateStatusFields();
}

Back to the top