diff options
author | Brett Porter <brett@apache.org> | 2007-02-12 05:47:16 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2007-02-12 05:47:16 +0000 |
commit | 45038c7c568033c6b9caff3a277b0c022b395bf2 (patch) | |
tree | aaeed718eb981fd353ddde97fa4e858bc309e370 /archiva-configuration/src/main/mdo/configuration.mdo | |
parent | 3b6c681194134a87292c175e995f77c2c0c743a3 (diff) | |
download | archiva-45038c7c568033c6b9caff3a277b0c022b395bf2.tar.gz archiva-45038c7c568033c6b9caff3a277b0c022b395bf2.zip |
fix NPE
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@506295 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-configuration/src/main/mdo/configuration.mdo')
-rw-r--r-- | archiva-configuration/src/main/mdo/configuration.mdo | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|