Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-25 13:05:44 +0000
committerMilos Kleint2011-01-26 13:33:20 +0000
commitffdb528de7c2b865f4ba5346d070c622bc2c1fec (patch)
tree80e384a7eb50667c6a3eb1da3403830c5965094a
parent1498feca6b274be14f799f72992723f2e00bf4dd (diff)
downloadm2e-core-ffdb528de7c2b865f4ba5346d070c622bc2c1fec.tar.gz
m2e-core-ffdb528de7c2b865f4ba5346d070c622bc2c1fec.tar.xz
m2e-core-ffdb528de7c2b865f4ba5346d070c622bc2c1fec.zip
with some corner case timing, NPE is thrown -> check.
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java4
1 files changed, 3 insertions, 1 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 196d2c61..8fdd0842 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
@@ -266,7 +266,9 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
// suppress a prompt to reload the pom if modifications were caused by workspace actions
//XXX: mkleint: why is this called outside of the ChangedResourceDeltaVisitor?
- sourcePage.updateModificationStamp();
+ if (sourcePage != null) {
+ sourcePage.updateModificationStamp();
+ }
class ChangedResourceDeltaVisitor implements IResourceDeltaVisitor {
public boolean visit(IResourceDelta delta) throws CoreException {

Back to the top