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++ ) {