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@179987 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
177692f82c
commit
40d47927de
|
@ -76,11 +76,14 @@ public class PluginDescriptorGenerator
|
|||
|
||||
w.startElement( "mojos" );
|
||||
|
||||
if ( pluginDescriptor.getMojos() != null )
|
||||
{
|
||||
for ( Iterator it = pluginDescriptor.getMojos().iterator(); it.hasNext(); )
|
||||
{
|
||||
MojoDescriptor descriptor = (MojoDescriptor) it.next();
|
||||
processMojoDescriptor( descriptor, w );
|
||||
}
|
||||
}
|
||||
|
||||
w.endElement();
|
||||
|
||||
|
|
Loading…
Reference in New Issue