Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2019-02-19 17:26:23 -0500
committerFred Bricon2019-02-19 17:26:23 -0500
commit8df44a1f8ad642e4343696f11660ac9088daab4e (patch)
treed1d7aec5960c40b8fd111f2a9d2cd66454d85992
parentda6ee5f46781db27c9775f765ebffcc30bac036f (diff)
downloadm2e-core-8df44a1f8ad642e4343696f11660ac9088daab4e.tar.gz
m2e-core-8df44a1f8ad642e4343696f11660ac9088daab4e.tar.xz
m2e-core-8df44a1f8ad642e4343696f11660ac9088daab4e.zip
Bug 543924 : guard against NPE in MarkerLocationService.checkVarious
Change-Id: I56f79edf4ef6fb59dad096a50f7414feb9b915a8 Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
index bbd9d8b7..c0475077 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
@@ -587,7 +587,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
IStructuredDocument document = domModel.getStructuredDocument();
Element root = domModel.getDocument().getDocumentElement();
- if(root.getNodeName().equals("project")) { //$NON-NLS-1$
+ if(root != null && "project".equals(root.getNodeName())) { //$NON-NLS-1$
//now check parent version and groupid against the current project's ones..
checkParentMatchingGroupIdVersion(mavenMarkerManager, root, pomFile, type, document);
if(mavenProject != null) {

Back to the top