mirror of https://github.com/apache/maven.git
avoid NPE when there is no cause
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d4aa23726f
commit
0ebf10aa03
|
@ -301,7 +301,7 @@ public class DefaultRepositoryMetadataManager
|
|||
catch ( TransferFailedException e )
|
||||
{
|
||||
getLogger().warn( metadata + " could not be found on repository: " + repository.getId() +
|
||||
" due to an error: " + e.getCause().getMessage() );
|
||||
" due to an error: " + e.getMessage() );
|
||||
getLogger().info( "Repository '" + repository.getId() + "' will be blacklisted" );
|
||||
getLogger().debug( "Exception", e );
|
||||
repository.setBlacklisted( allowBlacklisting );
|
||||
|
|
Loading…
Reference in New Issue