continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r897759 - /continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
Date Mon, 11 Jan 2010 05:40:01 GMT
Author: ctan
Date: Mon Jan 11 05:40:00 2010
New Revision: 897759

URL: http://svn.apache.org/viewvc?rev=897759&view=rev
Log:
[CONTINUUM-2419] added check if map contains key to prevent NPE

Modified:
    continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java

Modified: continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java?rev=897759&r1=897758&r2=897759&view=diff
==============================================================================
--- continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
(original)
+++ continuum/trunk/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
Mon Jan 11 05:40:00 2010
@@ -142,6 +142,11 @@
 
             for ( Project project : sortedProjects )
             {
+                if ( !projectsAndBuildDefinitions.containsKey( project.getId() ) )
+                {
+                    continue;
+                }
+
                 int buildDefinitionId = projectsAndBuildDefinitions.get( project.getId()
);
                 BuildDefinition buildDef = buildDefinitionDao.getBuildDefinition( buildDefinitionId
);
                 BuildResult buildResult = buildResultDao.getLatestBuildResultForProject(
project.getId() );



Mime
View raw message