continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r933461 - /continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/manager/DefaultDistributedBuildManager.java
Date Tue, 13 Apr 2010 01:51:00 GMT
Author: ctan
Date: Tue Apr 13 01:51:00 2010
New Revision: 933461

URL: http://svn.apache.org/viewvc?rev=933461&view=rev
Log:
prevent NPE when no build agent is configured

Modified:
    continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/manager/DefaultDistributedBuildManager.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/manager/DefaultDistributedBuildManager.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/manager/DefaultDistributedBuildManager.java?rev=933461&r1=933460&r2=933461&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/manager/DefaultDistributedBuildManager.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/continuum/builder/distributed/manager/DefaultDistributedBuildManager.java
Tue Apr 13 01:51:00 2010
@@ -173,6 +173,11 @@ public class DefaultDistributedBuildMana
     {
         List<BuildAgentConfiguration> agents = configurationService.getBuildAgents();
 
+        if ( agents != null )
+        {
+            return;
+        }
+
         synchronized( overallDistributedBuildQueues )
         {
             for ( BuildAgentConfiguration agent : agents )



Mime
View raw message