From a624012a8d453efb95756c86339a32c634be9647 Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Wed, 18 May 2005 11:59:09 +0000 Subject: [PATCH] Check if mojo has parameters before populate it git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170736 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/DefaultPluginManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java index 849951621e..1b646c8aa3 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java @@ -605,7 +605,8 @@ public class DefaultPluginManager List parameters = goal.getParameters(); List invalidParameters = new ArrayList(); - if ( parameters.isEmpty() ) + + if ( parameters == null || parameters.isEmpty() ) { return; }