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:
Brett Leslie Porter 2008-12-11 03:34:52 +00:00
parent 2d0093ee20
commit 87e5a9acf3
1 changed files with 6 additions and 6 deletions

View File

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