From 45038c7c568033c6b9caff3a277b0c022b395bf2 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Mon, 12 Feb 2007 05:47:16 +0000 Subject: [PATCH] fix NPE git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@506295 13f79535-47bb-0310-9956-ffa450edef68 --- archiva-configuration/src/main/mdo/configuration.mdo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-configuration/src/main/mdo/configuration.mdo b/archiva-configuration/src/main/mdo/configuration.mdo index 6187c49c4..0372ce554 100644 --- a/archiva-configuration/src/main/mdo/configuration.mdo +++ b/archiva-configuration/src/main/mdo/configuration.mdo @@ -156,7 +156,7 @@ for ( java.util.Iterator i = getRepositories().iterator(); i.hasNext(); ) { RepositoryConfiguration repository = (RepositoryConfiguration) i.next(); - if ( urlName.equals( repository.getUrlName() ) ) + if ( urlName != null ? !urlName.equals( repository.getUrlName() ) : repository.getUrlName() != null ) { return repository; } -- 2.39.5