diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/util/PDEModelUtility.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/util/PDEModelUtility.java index ba458cfb4e..bae7cf2879 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/util/PDEModelUtility.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/util/PDEModelUtility.java @@ -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);