[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] Updated: (EXEC-40) NPE in DefaultExecutor.setExitValues()
From:       "Siegfried Goeschl (JIRA)" <jira () apache ! org>
Date:       2009-06-30 19:52:47
Message-ID: 848998889.1246391567988.JavaMail.jira () brutus
[Download RAW message or body]


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

Siegfried Goeschl updated EXEC-40:
----------------------------------

    Fix Version/s: 1.1

> NPE in DefaultExecutor.setExitValues()
> --------------------------------------
> 
> Key: EXEC-40
> URL: https://issues.apache.org/jira/browse/EXEC-40
> Project: Commons Exec
> Issue Type: Bug
> Environment: Ubuntu Linux, Sun Java 1.6.0_13
> Reporter: Peter Henderson
> Assignee: Siegfried Goeschl
> Fix For: 1.1
> 
> Original Estimate: 1h
> Remaining Estimate: 1h
> 
> The setExitValues() of DefaultExecutor does not throws a NPE when passed a null \
> argument. The documentation says passing a null should disable exit value checking.
> Solution, modify the body to correctly handle nulls.
> public void setExitValues(final int[] values) {
> 	if (values==null) {
> this.extiValues = null;
> 	} else {
> this.exitValues = (int[]) values.clone();
> }
> }

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic