From 06ebdedc0cc8998886e8f5ed00da9febe1f42b2a Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Wed, 20 Apr 2005 16:46:27 +0000 Subject: [PATCH] PR: MNG-316 Submitted by: Kenney Westerhof Reviewed by: Brett Porter fix NPE when there is no default plugin configuration git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163981 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/maven/util/Xpp3DomUtils.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/util/Xpp3DomUtils.java b/maven-core/src/main/java/org/apache/maven/util/Xpp3DomUtils.java index 2e666efb72..85078ad0b6 100644 --- a/maven-core/src/main/java/org/apache/maven/util/Xpp3DomUtils.java +++ b/maven-core/src/main/java/org/apache/maven/util/Xpp3DomUtils.java @@ -30,6 +30,11 @@ public class Xpp3DomUtils { // TODO: how to mergeXpp3Dom lists rather than override? // TODO: share this as some sort of assembler, implement a walk interface? + if ( recessive == null ) + { + return; + } + Xpp3Dom[] children = recessive.getChildren(); for ( int i = 0; i < children.length; i++ ) {