continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r575807 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
Date Fri, 14 Sep 2007 22:44:23 GMT
Author: olamy
Date: Fri Sep 14 15:40:31 2007
New Revision: 575807

URL: http://svn.apache.org/viewvc?rev=575807&view=rev
Log:
fix NPE with shell projects

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java?rev=575807&r1=575806&r2=575807&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
Fri Sep 14 15:40:31 2007
@@ -183,7 +183,10 @@
                 {
                     checkAddProjectBuildDefinitionAuthorization( getProjectGroupName() );
                     BuildDefinition bd = getContinuum().getDefaultBuildDefinition( projectId
);
-                    preDefinedBuildFile = bd.getBuildFile();
+                    if ( bd != null )
+                    {
+                        preDefinedBuildFile = bd.getBuildFile();
+                    }
                 }
                 else
                 {



Mime
View raw message