From 5395710ce05a496cd10d40ca2707b80348e61048 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Mon, 20 Feb 2006 17:44:23 +0000 Subject: [PATCH] Merging in fix for MNG-2037. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@379181 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/project/injection/DefaultProfileInjector.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maven-project/src/main/java/org/apache/maven/project/injection/DefaultProfileInjector.java b/maven-project/src/main/java/org/apache/maven/project/injection/DefaultProfileInjector.java index b2bab450b1..dfe265c39f 100644 --- a/maven-project/src/main/java/org/apache/maven/project/injection/DefaultProfileInjector.java +++ b/maven-project/src/main/java/org/apache/maven/project/injection/DefaultProfileInjector.java @@ -138,6 +138,12 @@ public class DefaultProfileInjector private void injectPlugins( PluginContainer profileContainer, PluginContainer modelContainer ) { + if ( profileContainer == null || modelContainer == null ) + { + // nothing to do... + return; + } + List modelPlugins = modelContainer.getPlugins(); if ( modelPlugins == null )