diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java index baa40433d2..0f77e1d23f 100644 --- a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java +++ b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java @@ -82,6 +82,10 @@ public class DefaultProjectBuilderConfiguration public Properties getExecutionProperties() { + if ( executionProperties == null ) + { + executionProperties = new Properties(); + } return executionProperties; } @@ -115,6 +119,10 @@ public class DefaultProjectBuilderConfiguration public List getActiveProfileIds() { + if ( activeProfileIds == null ) + { + activeProfileIds = new ArrayList(); + } return activeProfileIds; } @@ -125,6 +133,10 @@ public class DefaultProjectBuilderConfiguration public List getInactiveProfileIds() { + if ( inactiveProfileIds == null ) + { + inactiveProfileIds = new ArrayList(); + } return inactiveProfileIds; } @@ -150,6 +162,11 @@ public class DefaultProjectBuilderConfiguration public List getProfiles() { + if ( profiles == null ) + { + profiles = new ArrayList(); + } return profiles; } + }