mirror of https://github.com/apache/maven.git
guard against NPE when the exception was dumped
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@725563 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d0093ee20
commit
87e5a9acf3
|
@ -142,17 +142,17 @@ public class BuildExtensionListener
|
|||
try
|
||||
{
|
||||
result = pluginManager.resolve( request );
|
||||
|
||||
ClassRealm realm = pluginManager.createClassRealm( result.getArtifacts() );
|
||||
|
||||
realm.display();
|
||||
|
||||
List<ComponentDescriptor<?>> components = pluginManager.discoverComponents( realm );
|
||||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
ClassRealm realm = pluginManager.createClassRealm( result.getArtifacts() );
|
||||
|
||||
realm.display();
|
||||
|
||||
List<ComponentDescriptor<?>> components = pluginManager.discoverComponents( realm );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue