Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2010-12-29 03:26:30 -0500
committerMilos Kleint2010-12-29 03:26:30 -0500
commit551bef3ded1a02d31100db157e10651255561a3f (patch)
tree064d0eb32efd1aa3dd7fbd8e543f291fce633945
parentf0b54942d68eb29a27a9f719ca28a8c2ec0ed69e (diff)
downloadm2e-core-551bef3ded1a02d31100db157e10651255561a3f.tar.gz
m2e-core-551bef3ded1a02d31100db157e10651255561a3f.tar.xz
m2e-core-551bef3ded1a02d31100db157e10651255561a3f.zip
fix NPE
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
index 1015d3e4..884f3b07 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
@@ -1243,9 +1243,12 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
IFileEditorInput fileinput = (IFileEditorInput) input;
for (MavenProjectChangedEvent event : events) {
if (fileinput.getFile().equals(event.getSource())) {
- MavenProject mp = event.getMavenProject().getMavenProject();
- if (mp != null) {
- mavenProject = mp;
+ IMavenProjectFacade facade = event.getMavenProject();
+ if (facade != null) {
+ MavenProject mp = facade.getMavenProject();
+ if (mp != null) {
+ mavenProject = mp;
+ }
}
}
}

Back to the top