Improve error handling upon a potential NPE in case of missing <jnlp> section 
in the pom
----------------------------------------------------------------------------------------

         Key: MOJO-356
         URL: http://jira.codehaus.org/browse/MOJO-356
     Project: Mojo
        Type: Improvement

  Components: webstart  
    Reporter: Jerome Lacoste
    Priority: Trivial


In case of a badly configured pom, the following NPE can be thrown

       ... 16 more
Caused by: java.lang.NullPointerException
       at
org.codehaus.mojo.webstart.JnlpMojo.processDependency(JnlpMojo.java:629)

This matches to 

if ( artifactContainsClass( artifact, jnlp.getMainClass() ) ) {

Let's detect this and throw a handle the error in a better way.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to