Skip to content

Commit

Permalink
Fix NPE in PDEModelUtility.java (line 415) by adding null check (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
slvo-loading committed Nov 16, 2024
1 parent ef694eb commit 6847a28
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,11 @@ private static void modifyEditorModel(final ModelModification mod, final PDEForm
for (IFile file : files) {
if (file == null)
continue;
InputContext con = editor.getContextManager().findContext(file);
if (con != null)
con.flushEditorInput();
if (editor.getContextManager() != null){
InputContext con = editor.getContextManager().findContext(file);
if (con != null)
con.flushEditorInput();
}
}
if (mod.saveOpenEditor())
editor.doSave(monitor);
Expand Down

0 comments on commit 6847a28

Please sign in to comment.