[MNG-2228] fix null pointer exception

Merged from: 492103, maven-2.0.x branch


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@492104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2007-01-03 11:14:31 +00:00
parent 3d073bd7d3
commit a6ddaac0b5
1 changed files with 2 additions and 3 deletions

View File

@ -90,9 +90,8 @@ public class DefaultExtensionManager
PlexusContainer extensionContainer = getExtensionContainer();
if ( extensionContainer == null )
{
extensionContainer = container.createChildContainer( CONTAINER_NAME,
Collections.singletonList( artifact.getFile() ),
Collections.EMPTY_MAP );
extensionContainer =
container.createChildContainer( CONTAINER_NAME, Collections.EMPTY_LIST, Collections.EMPTY_MAP );
}
for ( Iterator i = result.getArtifacts().iterator(); i.hasNext(); )