split command to narrow down NPE in integration environment

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@291250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-24 04:56:39 +00:00
parent 15913ddde0
commit 0fbd59f4f8
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ public class DefaultPluginManager
// use for the mapping manager in here // use for the mapping manager in here
Settings settings = session.getSettings(); Settings settings = session.getSettings();
List pluginGroups = settings.getPluginGroups(); List pluginGroups = settings.getPluginGroups();
if ( pluginMappingManager == null ) throw new NullPointerException( "pluginMappingManager was null" );
if ( project == null ) throw new NullPointerException( "project was null" );
return pluginMappingManager.getByPrefix( prefix, pluginGroups, project.getPluginArtifactRepositories(), return pluginMappingManager.getByPrefix( prefix, pluginGroups, project.getPluginArtifactRepositories(),
session.getLocalRepository() ); session.getLocalRepository() );
} }