[ 
https://issues.apache.org/jira/browse/EXEC-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Siegfried Goeschl closed EXEC-43.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.1

This was already fixed a while ago ...

> DefaultExecutor.setExitValues(null) throws NullPointerException
> ---------------------------------------------------------------
>
>                 Key: EXEC-43
>                 URL: https://issues.apache.org/jira/browse/EXEC-43
>             Project: Commons Exec
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: WinXP SP3, JDK 1.5.0_17
>            Reporter: Matt P
>             Fix For: 1.0.1
>
>
> Setting no checking of exit codes as per javadocs for DefaultExecutor results 
> in NullPointerException:
>                               DefaultExecutor executor = new 
> DefaultExecutor();
>                               executor.setExitValues(null );
> throws:
> java.lang.NullPointerException
>       at 
> org.apache.commons.exec.DefaultExecutor.setExitValues(DefaultExecutor.java:201)
> even though javadocs say:
> *setExitValues*
> public void setExitValues(int[] values)
> Description copied from interface: Executor
> Define the exit code of the process to considered successful. The caller can 
> pass one of the following values
> - an array of exit values to be considered successful
> - an empty array for auto-detect of successful exit codes
> - *null to indicate to skip checking of exit codes*
> Specified by:
> setExitValues in interface Executor
> Parameters:
> values - a list of the exit codes

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