Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-04-27 05:22:20 -0400
committerMilos Kleint2011-04-27 05:22:20 -0400
commita20c3bba41b1e6c22e989a89253738cb2530df32 (patch)
tree163c2c0251a2c7537a8b7f5a98df832ff57d2623
parent2fd4172712cd141cbb0811cc04879f2437faaf90 (diff)
downloadm2e-core-a20c3bba41b1e6c22e989a89253738cb2530df32.tar.gz
m2e-core-a20c3bba41b1e6c22e989a89253738cb2530df32.tar.xz
m2e-core-a20c3bba41b1e6c22e989a89253738cb2530df32.zip
NPE sanity check
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java
index d1d99084..f5e58998 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java
@@ -457,7 +457,10 @@ public abstract class MavenPomEditorPage extends FormPage {
public void dispose() {
inputHistory.save();
- getPomEditor().getModel().removeModelStateListener(listener);
+ MavenPomEditor pe = getPomEditor();
+ if (pe != null && pe.getModel() != null) {
+ pe.getModel().removeModelStateListener(listener);
+ }
super.dispose();
}

Back to the top