Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 76574 invoked from network); 26 Oct 2009 23:56:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Oct 2009 23:56:23 -0000 Received: (qmail 45845 invoked by uid 500); 26 Oct 2009 23:56:22 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 45726 invoked by uid 500); 26 Oct 2009 23:56:22 -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 45715 invoked by uid 99); 26 Oct 2009 23:56:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2009 23:56:22 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Mon, 26 Oct 2009 23:56:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 92CA2234C1F0 for ; Mon, 26 Oct 2009 16:55:59 -0700 (PDT) Message-ID: <1457280374.1256601359600.JavaMail.jira@brutus> Date: Mon, 26 Oct 2009 23:55:59 +0000 (UTC) From: "Matt P (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (EXEC-43) DefaultExecutor.setExitValues(null) throws NullPointerException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 DefaultExecutor.setExitValues(null) throws NullPointerException --------------------------------------------------------------- Key: EXEC-43 URL: https://issues.apache.org/jira/browse/EXEC-43 Project: Commons Exec Issue Type: Bug Environment: WinXP SP3, JDK 1.5.0_17 Reporter: Matt P 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.