continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r564617 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Fri, 10 Aug 2007 15:23:30 GMT
Author: evenisse
Date: Fri Aug 10 08:23:29 2007
New Revision: 564617

URL: http://svn.apache.org/viewvc?view=rev&rev=564617
Log:
Fix NPE if the group doesn't contains a default builddef

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/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?view=diff&rev=564617&r1=564616&r2=564617
==============================================================================
--- 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
Fri Aug 10 08:23:29 2007
@@ -720,7 +720,12 @@
                 " doens't have a default build definition, this should be impossible, it
should always have a default definition set." );
         }
 
-        buildProjectGroupWithBuildDefinition( projectGroupId, groupDefaultBD.getId(), true
);
+        int buildDefinitionId = -1;
+        if ( groupDefaultBD != null )
+        {
+            buildDefinitionId = groupDefaultBD.getId();
+        }
+        buildProjectGroupWithBuildDefinition( projectGroupId, buildDefinitionId, true );
     }
 
     /**



Mime
View raw message