mirror of
https://github.com/apache/archiva.git
synced 2025-02-06 10:09:32 +00:00
fix NPE
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@506295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3b6c681194
commit
45038c7c56
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user