mirror of https://github.com/apache/maven.git
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:
parent
ac2d8a7e83
commit
e57f2dbb44
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue