cxf-codegen-plugin throws NullPointerException when defaultOptions defined 
without packagenames
-----------------------------------------------------------------------------------------------

                 Key: CXF-2561
                 URL: https://issues.apache.org/jira/browse/CXF-2561
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.2.5
         Environment: maven
            Reporter: Francis De Brabandere


If the cxf-codegen-plugin is defined with this section in its configuration you 
will get a NullPointerException

<defaultOptions>
  <validateWsdl>true</validateWsdl> 
  <bindingFiles>
    <bindingFile>${basedir}/src/jaxws/fixmsprops.xml</bindingFile>
  </bindingFiles>
  <!--<packagenames/>-->
</defaultOptions>

java.lang.NullPointerException
        at java.util.ArrayList.addAll(ArrayList.java:472)
        at org.apache.cxf.maven_plugin.Option.merge(Option.java:424)
        at 
org.apache.cxf.maven_plugin.WSDL2JavaMojo.mergeOptions(WSDL2JavaMojo.java:260)

A temporary fix is to add the an empty packagenames element.

This issue can be fixed in Options.java on line 429 by putting that line inside 
a if(defaultOptions.namespaceExcludes != null){...}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to