maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r738829 - /maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java
Date Thu, 29 Jan 2009 11:58:44 GMT
Author: vsiveton
Date: Thu Jan 29 11:58:44 2009
New Revision: 738829

URL: http://svn.apache.org/viewvc?rev=738829&view=rev
Log:
MPIR-131: NPE in printArtifactsLocations() for blacklisted repo
Submitted by: J├Ârgen Rydenius
Reviewed by: Vincent Siveton

o Patch applied

Modified:
    maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java

Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java?rev=738829&r1=738828&r2=738829&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java
(original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java
Thu Jan 29 11:58:44 2009
@@ -1179,7 +1179,8 @@
         {
             String repokey = (String) itrepo.next();
 
-            totalRow[idnum++] = totalByRepo.get( repokey ).toString();
+            Integer dependencies = (Integer) totalByRepo.get( repokey );
+            totalRow[idnum++] = dependencies != null ? dependencies.toString() : "0";
         }
 
         tableRow( totalRow );



Mime
View raw message