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; }