diff options
| author | Lars Vogel | 2020-06-08 07:56:09 +0000 |
|---|---|---|
| committer | Lars Vogel | 2020-06-08 07:56:29 +0000 |
| commit | a733041c6838095813815507cd6d19e7ec997e76 (patch) | |
| tree | e41ed0d28d49c979aa460876cffcb892507b8913 | |
| parent | e6806155007d916f49c20e3f8efae4e5d03d1d10 (diff) | |
| download | eclipse.platform.text-a733041c6838095813815507cd6d19e7ec997e76.tar.gz eclipse.platform.text-a733041c6838095813815507cd6d19e7ec997e76.tar.xz eclipse.platform.text-a733041c6838095813815507cd6d19e7ec997e76.zip | |
Bug 563708 - Removes compiler warning of potential null
Change-Id: I3ba707ebf73fffd53eabd970930dfac5dce8d282
| -rw-r--r-- | org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusTextEditor.java | 4 |
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 2716e70c4a3..f7a24ddb28f 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(); } |
