From f9002b18215da00706af62820efb4cb71ba6a5b7 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 4 May 2010 11:41:32 +0000 Subject: [PATCH] o Fixed error message git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@940810 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugin/version/PluginVersionResolutionException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java b/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java index 76f317207a..719b204439 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/version/PluginVersionResolutionException.java @@ -87,10 +87,10 @@ public class PluginVersionResolutionException if ( remoteRepositories != null && !remoteRepositories.isEmpty() ) { - repos += ", "; - for ( ArtifactRepository repository : remoteRepositories ) { + repos += ", "; + if ( repository != null ) { repos += repository.getId() + " (" + repository.getUrl() + ")";