NPE when reporting command line error for non-existent option
-------------------------------------------------------------

                 Key: MNG-4409
                 URL: http://jira.codehaus.org/browse/MNG-4409
             Project: Maven 2
          Issue Type: Bug
          Components: Command Line
    Affects Versions: 3.0-alpha-3
            Reporter: Paul Benedict
            Priority: Critical


If I type in a command option that does not exist, this results:
java.lang.NullPointerException
        at 
org.apache.maven.cli.CLIReportingUtils.showError(CLIReportingUtils.java:194)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:132)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

-- 
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