mirror of https://github.com/apache/maven.git
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:
parent
15913ddde0
commit
0fbd59f4f8
|
@ -143,6 +143,8 @@ public class DefaultPluginManager
|
|||
// use for the mapping manager in here
|
||||
Settings settings = session.getSettings();
|
||||
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(),
|
||||
session.getLocalRepository() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue