fix possible NPE

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@190975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-06-16 18:09:17 +00:00
parent ac2d8a7e83
commit e57f2dbb44
1 changed files with 4 additions and 1 deletions

View File

@ -188,7 +188,10 @@ public abstract class AbstractArtifactTask
}
Mirror mirror = getSettings().getMirrorOf( pomRepository.getId() );
r.setUrl( mirror.getUrl() );
if ( mirror != null )
{
r.setUrl( mirror.getUrl() );
}
return r;
}