mirror of https://github.com/apache/maven.git
o Fixing a small bug that would cause a NPE if a plugin doesn't contain any mojos.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@180000 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40d47927de
commit
d34ec0926a
|
@ -251,6 +251,8 @@ public class DefaultLifecycleExecutor
|
|||
|
||||
Map goalMap = plugin.getGoalsAsMap();
|
||||
|
||||
if ( pluginDescriptor.getMojos() != null )
|
||||
{
|
||||
for ( Iterator j = pluginDescriptor.getMojos().iterator(); j.hasNext(); )
|
||||
{
|
||||
MojoDescriptor mojoDescriptor = (MojoDescriptor) j.next();
|
||||
|
@ -279,6 +281,7 @@ public class DefaultLifecycleExecutor
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Take a look at a mojo contained within a plugin, look to see whether it contributes to a
|
||||
|
|
Loading…
Reference in New Issue