Skip to content

Commit

Permalink
fix NPE seen in GitHub Actions runs
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenporras committed Sep 4, 2024
1 parent e00186d commit b77f568
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 b77f568

Please sign in to comment.