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 authored and HannesWell committed Dec 2, 2024
1 parent bb04e28 commit fcef52d
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 fcef52d

Please sign in to comment.