continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r719442 - /continuum/branches/continuum-1.2.x/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
Date Fri, 21 Nov 2008 01:24:27 GMT
Author: ctan
Date: Thu Nov 20 17:24:26 2008
New Revision: 719442

URL: http://svn.apache.org/viewvc?rev=719442&view=rev
Log:
[CONTINUUM-1985] fixed NPE when releasing projects with no local repo
Submitted By: Brent N. Atkinson

Modified:
    continuum/branches/continuum-1.2.x/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java

Modified: continuum/branches/continuum-1.2.x/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java?rev=719442&r1=719441&r2=719442&view=diff
==============================================================================
--- continuum/branches/continuum-1.2.x/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
(original)
+++ continuum/branches/continuum-1.2.x/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
Thu Nov 20 17:24:26 2008
@@ -102,11 +102,14 @@
 
         cl.setWorkingDirectory( workingDirectory.getAbsolutePath() );
 
-        for ( int i = 0; i < arguments.length; i++ )
+        if ( arguments != null )
         {
-            String argument = arguments[i];
+            for ( int i = 0; i < arguments.length; i++ )
+            {
+                String argument = arguments[i];
 
-            cl.createArgument().setValue( argument );
+                cl.createArgument().setValue( argument );
+            }
         }
 
         return cl;



Mime
View raw message