You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2009/09/20 14:30:58 UTC
svn commit: r817018 -
/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectInfoReportUtils.java
Author: olamy
Date: Sun Sep 20 12:30:57 2009
New Revision: 817018
URL: http://svn.apache.org/viewvc?rev=817018&view=rev
Log:
fix junit (prevent NPE in core)
Modified:
maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectInfoReportUtils.java
Modified: maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectInfoReportUtils.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectInfoReportUtils.java?rev=817018&r1=817017&r2=817018&view=diff
==============================================================================
--- maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectInfoReportUtils.java (original)
+++ maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ProjectInfoReportUtils.java Sun Sep 20 12:30:57 2009
@@ -24,6 +24,7 @@
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.net.URL;
+import java.util.Collections;
import java.util.List;
import java.util.Properties;
@@ -168,8 +169,10 @@
}
try
{
- MavenProject pluginProject = mavenProjectBuilder.buildFromRepository( copyArtifact, remoteRepositories,
- localRepository );
+ MavenProject pluginProject =
+ mavenProjectBuilder.buildFromRepository( copyArtifact,
+ remoteRepositories == null ? Collections.EMPTY_LIST
+ : remoteRepositories, localRepository );
if ( isArtifactUrlValid( pluginProject.getUrl() ) )
{