Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2020-05-26 08:38:31 +0000
committerMickael Istria2020-05-26 10:57:38 +0000
commit90954549f4f9d650d43f7f2365501fd118a11344 (patch)
treeff0ee3a44c54ffb8cc5325c55698ff5316607cb9 /org.eclipse.m2e.editor
parent75f1147088b6fae7248ba4de63ddb54e2de136e0 (diff)
downloadm2e-core-90954549f4f9d650d43f7f2365501fd118a11344.tar.gz
m2e-core-90954549f4f9d650d43f7f2365501fd118a11344.tar.xz
m2e-core-90954549f4f9d650d43f7f2365501fd118a11344.zip
Bug 563576 - NullPointerException in MavenPomEditor
Have a null check here, like at other places accessing this member. Change-Id: I9d07f3e661bf416bfa191910095dfa572e0cc0e7 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.m2e.editor')
-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 cf6135b9..55b2806f 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
@@ -428,7 +428,9 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
public void documentChanged(org.eclipse.jface.text.DocumentEvent event) {
try {
- pomFile.refreshLocal(IResource.DEPTH_INFINITE, null);
+ if(pomFile != null) {
+ pomFile.refreshLocal(IResource.DEPTH_INFINITE, null);
+ }
} catch(CoreException e) {
log.error(e.getMessage(), e);
}

Back to the top