Check if mojo has parameters before populate it

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170735 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2005-05-18 11:51:42 +00:00
parent 3ab55f3c5c
commit 2f6b576c4b
1 changed files with 4 additions and 0 deletions

View File

@ -605,6 +605,10 @@ public class DefaultPluginManager
List parameters = goal.getParameters();
List invalidParameters = new ArrayList();
if ( parameters.isEmpty() )
{
return;
}
for ( int i = 0; i < parameters.size(); i++ )
{