Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 93096 invoked from network); 23 Jun 2009 06:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jun 2009 06:37:20 -0000 Received: (qmail 45271 invoked by uid 500); 23 Jun 2009 06:37:30 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 45162 invoked by uid 500); 23 Jun 2009 06:37:30 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 45148 invoked by uid 99); 23 Jun 2009 06:37:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 06:37:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 06:37:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB484234C004 for ; Mon, 22 Jun 2009 23:37:07 -0700 (PDT) Message-ID: <819949269.1245739027827.JavaMail.jira@brutus> Date: Mon, 22 Jun 2009 23:37:07 -0700 (PDT) From: "Siegfried Goeschl (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (EXEC-40) NPE in DefaultExecutor.setExitValues() In-Reply-To: <58288263.1242490905544.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/EXEC-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722983#action_12722983 ] Siegfried Goeschl commented on EXEC-40: --------------------------------------- That is a bit embarrasing - introduced that when fixing Findbugs issues ... :-( > 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 > 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.