continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r447753 - /maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Tue, 19 Sep 2006 05:58:33 GMT
Author: carlos
Date: Mon Sep 18 22:58:33 2006
New Revision: 447753

URL: http://svn.apache.org/viewvc?view=rev&rev=447753
Log:
Fix NPE

Modified:
    maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?view=diff&rev=447753&r1=447752&r2=447753
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Mon Sep 18 22:58:33 2006
@@ -36,6 +36,7 @@
 import org.apache.maven.continuum.model.project.ProjectGroup;
 import org.apache.maven.continuum.model.project.ProjectNotifier;
 import org.apache.maven.continuum.model.project.Schedule;
+import org.apache.maven.continuum.model.scm.ScmResult;
 import org.apache.maven.continuum.model.system.ContinuumUser;
 import org.apache.maven.continuum.model.system.UserGroup;
 import org.apache.maven.continuum.project.ContinuumProjectState;
@@ -813,7 +814,12 @@
                 changes = new ArrayList();
             }
 
-            changes.addAll( buildResult.getScmResult().getChanges() );
+            ScmResult scmResult = buildResult.getScmResult();
+
+            if ( scmResult != null )
+            {
+                changes.addAll( scmResult.getChanges() );
+            }
 
             if ( !buildResultsIterator.hasNext() )
             {



Mime
View raw message