continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r358304 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Wed, 21 Dec 2005 15:09:33 GMT
Author: evenisse
Date: Wed Dec 21 07:09:26 2005
New Revision: 358304

URL: http://svn.apache.org/viewcvs?rev=358304&view=rev
Log:
PR: CONTINUUM-519
Submitted by: Dan Tran

Fix NPE in buildProjects.

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

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=358304&r1=358303&r2=358304&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Wed Dec 21 07:09:26 2005
@@ -365,12 +365,12 @@
         {
             Project p = (Project) projectIterator.next();
 
-            int buildDefId = ( (Integer) projectsMap.get( new Integer( p.getId() ) ) ).intValue();
+            Integer buildDefId = ( (Integer) projectsMap.get( new Integer( p.getId() ) )
);
 
-            if ( !isInBuildingQueue( p.getId() ) && !isInCheckoutQueue( p.getId()
) )
+            if ( buildDefId != null && !isInBuildingQueue( p.getId() ) &&
!isInCheckoutQueue( p.getId() ) )
             {
                 //TODO: Fix trigger name
-                buildProject( p.getId(), buildDefId, ContinuumProjectState.TRIGGER_UNKNOWN,
false );
+                buildProject( p.getId(), buildDefId.intValue(), ContinuumProjectState.TRIGGER_UNKNOWN,
false );
             }
         }
     }



Mime
View raw message