Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2012-05-21 00:28:22 -0400
committerIgor Fedorenko2012-05-21 00:31:41 -0400
commita5975409390b5addfb73f8f73d5f9b78dd072586 (patch)
tree1afcfd9a0c828fbb8db9138be7ca0664131c0f7b
parent9c7d64c5d7d53480b12d6b06eaad966492cb3355 (diff)
downloadm2e-core-a5975409390b5addfb73f8f73d5f9b78dd072586.tar.gz
m2e-core-a5975409390b5addfb73f8f73d5f9b78dd072586.tar.xz
m2e-core-a5975409390b5addfb73f8f73d5f9b78dd072586.zip
380096 fixed NPE during project clean in some cases
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
index 1859c824..b833e3bf 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
@@ -145,6 +145,11 @@ public class MavenBuilder extends IncrementalProjectBuilder implements DeltaProv
return;
}
+ // 380096 make sure facade.getMavenProject() is not null
+ if(projectFacade.getMavenProject(monitor) == null) {
+ return;
+ }
+
ILifecycleMapping lifecycleMapping = configurationManager.getLifecycleMapping(projectFacade);
if(lifecycleMapping == null) {
return;

Back to the top