commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgoes...@apache.org
Subject svn commit: r793940 - /commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java
Date Tue, 14 Jul 2009 15:25:10 GMT
Author: sgoeschl
Date: Tue Jul 14 15:25:10 2009
New Revision: 793940

URL: http://svn.apache.org/viewvc?rev=793940&view=rev
Log:
[EXEC-40] Fixes NPE in DefaultExecutor.setExitValues().

Modified:
    commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java

Modified: commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java?rev=793940&r1=793939&r2=793940&view=diff
==============================================================================
--- commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java (original)
+++ commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/DefaultExecutor.java Tue
Jul 14 15:25:10 2009
@@ -198,7 +198,7 @@
 
     /** @see org.apache.commons.exec.Executor#setExitValues(int[]) */
     public void setExitValues(final int[] values) {
-        this.exitValues = (int[]) values.clone();
+        this.exitValues = (values == null ? null : (int[]) values.clone());
     }
 
     /** @see org.apache.commons.exec.Executor#isFailure(int) */



Mime
View raw message