o Fixed NPE

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@788108 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-24 18:25:58 +00:00
parent e7ef007e6e
commit 01f1ae9b5d
1 changed files with 6 additions and 2 deletions

View File

@ -788,8 +788,12 @@ public class DefaultLifecycleExecutor
{
LifecycleMapping lifecycleMappingForPackaging = lifecycleMappings.get( packaging );
org.apache.maven.lifecycle.mapping.Lifecycle lifecycleConfiguration = lifecycleMappingForPackaging.getLifecycles().get( lifecycle.getId() );
org.apache.maven.lifecycle.mapping.Lifecycle lifecycleConfiguration = null;
if ( lifecycleMappingForPackaging != null )
{
lifecycleConfiguration = lifecycleMappingForPackaging.getLifecycles().get( lifecycle.getId() );
}
if ( lifecycleConfiguration != null )
{
Map<String, String> lifecyclePhasesForPackaging = lifecycleConfiguration.getPhases();