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:
Brett Leslie Porter 2005-10-11 07:50:24 +00:00
parent d4aa23726f
commit 0ebf10aa03
1 changed files with 1 additions and 1 deletions

View File

@ -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 );