mirror of https://github.com/apache/maven.git
[MNG-2087] NPE in PluginXdocGenerator
Submitted by: Vincent Siveton git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@379310 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
908d6624d4
commit
33e508a29d
|
@ -158,6 +158,8 @@ public class PluginXdocGenerator
|
|||
|
||||
List mojos = pluginDescriptor.getMojos();
|
||||
|
||||
if ( mojos != null )
|
||||
{
|
||||
for ( Iterator i = mojos.iterator(); i.hasNext(); )
|
||||
{
|
||||
MojoDescriptor mojo = (MojoDescriptor) i.next();
|
||||
|
@ -218,6 +220,7 @@ public class PluginXdocGenerator
|
|||
|
||||
w.endElement();
|
||||
}
|
||||
}
|
||||
|
||||
w.endElement();
|
||||
|
||||
|
@ -323,6 +326,8 @@ public class PluginXdocGenerator
|
|||
|
||||
List parameters = mojoDescriptor.getParameters();
|
||||
|
||||
if ( parameters != null )
|
||||
{
|
||||
for ( int i = 0; i < parameters.size(); i++ )
|
||||
{
|
||||
Parameter parameter = (Parameter) parameters.get( i );
|
||||
|
@ -461,6 +466,7 @@ public class PluginXdocGenerator
|
|||
|
||||
w.endElement(); // tr
|
||||
}
|
||||
}
|
||||
|
||||
w.endElement(); // table
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue