continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r209543 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Date Wed, 06 Jul 2005 23:42:02 GMT
Author: trygvis
Date: Wed Jul  6 16:42:00 2005
New Revision: 209543

URL: http://svn.apache.org/viewcvs?rev=209543&view=rev
Log:
o updated files can be null.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java?rev=209543&r1=209542&r2=209543&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Wed Jul  6 16:42:00 2005
@@ -210,15 +210,18 @@
 
         result.setProviderMessage( scmResult.getProviderMessage() );
 
-        for ( Iterator it = scmResult.getUpdatedFiles().iterator(); it.hasNext(); )
+        if ( scmResult.getUpdatedFiles() != null )
         {
-            org.apache.maven.scm.ScmFile scmFile = (org.apache.maven.scm.ScmFile) it.next();
+            for ( Iterator it = scmResult.getUpdatedFiles().iterator(); it.hasNext(); )
+            {
+                org.apache.maven.scm.ScmFile scmFile = (org.apache.maven.scm.ScmFile) it.next();
 
-            ScmFile file = new ScmFile();
+                ScmFile file = new ScmFile();
 
-            file.setPath( scmFile.getPath() );
+                file.setPath( scmFile.getPath() );
 
-            result.addUpdatedFile( file );
+                result.addUpdatedFile( file );
+            }
         }
 
         return result;



Mime
View raw message