Throw illegal argument, not NPE.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-11-29 05:27:02 +00:00
parent b1f8050277
commit 7b974639d5
2 changed files with 6 additions and 1 deletions

View File

@ -749,7 +749,7 @@ public class DefaultWagonManager
id = repository.getId();
}
getLogger().info( "Using mirror: " + mirror.getId() + " for repository: " + repository.getId() + "\n(mirror url: " + mirror.getUrl() + ")" );
getLogger().debug( "Using mirror: " + mirror.getId() + " for repository: " + repository.getId() + "\n(mirror url: " + mirror.getUrl() + ")" );
repository = repositoryFactory.createArtifactRepository( id, mirror.getUrl(),
repository.getLayout(), repository.getSnapshots(),
repository.getReleases() );

View File

@ -35,6 +35,11 @@ public class LegacyLifecycleMappingParser
public LifecycleBindings parseDefaultMappings( final List lifecycles )
throws LifecycleSpecificationException
{
if( lifecycles == null )
{
throw new IllegalArgumentException("lifecycles: null");
}
LifecycleBindings bindings = new LifecycleBindings();
bindings.setPackaging( "unmatched" );