Skip to content

Commit

Permalink
fix NPE seen in GitHub Actions runs (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenporras authored Sep 4, 2024
1 parent e00186d commit 30a64f4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public static IEditorPart openEditor(IFile file) throws PartInitException {
final var input = new FileEditorInput(file);

IEditorPart part = page.openEditor(input, "org.eclipse.ui.genericeditor.GenericEditor", false);
part.setFocus();
if (part != null) {
part.setFocus();
}
return part;
}

Expand Down

0 comments on commit 30a64f4

Please sign in to comment.