continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r387184 - /maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/Summary.vm
Date Mon, 20 Mar 2006 11:11:30 GMT
Author: evenisse
Date: Mon Mar 20 03:11:28 2006
New Revision: 387184

URL: http://svn.apache.org/viewcvs?rev=387184&view=rev
Log:
Fix null values

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/Summary.vm

Modified: maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/Summary.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/Summary.vm?rev=387184&r1=387183&r2=387184&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/Summary.vm
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-web/src/main/resources/templates/screens/Summary.vm
Mon Mar 20 03:11:28 2006
@@ -51,7 +51,9 @@
         <td bordercolor="#999999">
           <div align="center">
           #if ( $item.state == 1 || $item.state == 10 || $item.state == 2 || $item.state
== 3 || $item.state == 4 )
-            #set ( $latestBuild = $buildResults.get( $item.id ) )
+            #if ( $buildResults.get( $item.id ) )
+              #set ( $latestBuild = $buildResults.get( $item.id ) )
+            #end
             #set ( $generatedState = $state.generate( $item ) )
             #if ( $latestBuild && $generatedState != "New" )
               <a href="$link.setPage('ProjectBuild.vm').addQueryData('view','ProjectBuild').addQueryData('buildId',$latestBuild.id).addQueryData('id',$item.id)">$generatedState</a></td>
@@ -59,7 +61,9 @@
               $generatedState
             #end
           #elseif ( $continuum.isInBuildingQueue( $item.id ) )
-            #set ( $latestBuild = $buildResults.get( $item.id ) )
+            #if ( $buildResults.get( $item.id ) )
+              #set ( $latestBuild = $buildResults.get( $item.id ) )
+            #end
             #if ( $latestBuild )
               #set ( $generatedState = $state.generate( $latestBuild ) )
               <a href="$link.setPage('ProjectBuild.vm').addQueryData('view','ProjectBuild').addQueryData('buildId',$latestBuild.id).addQueryData('id',$item.id)">$generatedState</a></td>



Mime
View raw message