We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f946d26 commit 05209e1Copy full SHA for 05209e1
1 file changed
plugin/src/main/java/de/sebthom/eclipse/commons/ui/UI.java
@@ -224,7 +224,11 @@ public static Shell getShell() {
224
if (page == null)
225
return null;
226
227
- final var editorSite = page.getActiveEditor().getEditorSite();
+ final var editor = page.getActiveEditor();
228
+ if (editor == null)
229
+ return null;
230
+
231
+ final var editorSite = editor.getEditorSite();
232
if (editorSite != null)
233
return editorSite.getActionBars().getStatusLineManager();
234
0 commit comments