continuum-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=719443&view=rev
Log:
merge -r 719441:719442 from continuum-1.2.x branch
[CONTINUUM-1985] fixed NPED when releasing projects without local repo

Modified:
    continuum/trunk/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java

Modified: continuum/trunk/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java?rev=719443&r1=719442&r2=719443&view=diff
==============================================================================
--- continuum/trunk/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
(original)
+++ continuum/trunk/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
Thu Nov 20 17:26:32 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