[ 
https://jira.codehaus.org/browse/MEXEC-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292165#comment-292165
 ] 

Gili edited comment on MEXEC-108 at 2/19/12 6:18 PM:
-----------------------------------------------------

I'm attaching a testcase using maven-exec-plugin 1.2.1. Please take a look and 
let me know whether I need to file a separate bug with commons-exec.
                
      was (Author: cowwoc):
    I'm attaching a testcase using maven-exec-plugin 1.2.1. Please take a look 
and let me know whether I need to file a separate bug with common-exec.
                  
> NPE at EnvironmentUtils.toStrings()
> -----------------------------------
>
>                 Key: MEXEC-108
>                 URL: https://jira.codehaus.org/browse/MEXEC-108
>             Project: Maven 2.x Exec Plugin
>          Issue Type: Bug
>          Components: exec
>         Environment: Ubuntu 10.04
>            Reporter: Gili
>         Attachments: mavenproject1.zip
>
>
> ProcessBuilder.environment() may contain keys with a null value. In my case 
> "INSIDE_NAUTILUS_PYTHON=" was defined. If maven-exec-plugin is invoked with 
> the same environment variables, the following exception is thrown:
> {code}
> java.lang.NullPointerException
>       at 
> org.apache.commons.exec.environment.EnvironmentUtils.toStrings(EnvironmentUtils.java:66)
>       at 
> org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:56)
>       at 
> org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:254)
>       at 
> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:319)
>       at 
> org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
>       at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)
>       at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)
> {code}
> Expected behavior: EnvironmentUtils.toStrings() should be able to handle the 
> Map returned by ProcessBuilder with the same interpretation as it treats null 
> keys and values.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to