mirror of
https://github.com/apache/maven.git
synced 2025-02-06 18:18:48 +00:00
[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:
parent
3d073bd7d3
commit
a6ddaac0b5
@ -90,9 +90,8 @@ public void addExtension( Extension extension, MavenProject project, ArtifactRep
|
||||
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(); )
|
||||
|
Loading…
x
Reference in New Issue
Block a user