mirror of https://github.com/apache/maven.git
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:
parent
e7ef007e6e
commit
01f1ae9b5d
|
@ -788,7 +788,11 @@ public class DefaultLifecycleExecutor
|
||||||
{
|
{
|
||||||
LifecycleMapping lifecycleMappingForPackaging = lifecycleMappings.get( packaging );
|
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 )
|
if ( lifecycleConfiguration != null )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue