You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/05/23 18:37:46 UTC

svn commit: r777957 - /maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java

Author: bentmann
Date: Sat May 23 16:37:46 2009
New Revision: 777957

URL: http://svn.apache.org/viewvc?rev=777957&view=rev
Log:
o Prevented NPEs in downstream code

Modified:
    maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java

Modified: maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java
URL: http://svn.apache.org/viewvc/maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java?rev=777957&r1=777956&r2=777957&view=diff
==============================================================================
--- maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java (original)
+++ maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilderConfiguration.java Sat May 23 16:37:46 2009
@@ -82,6 +82,10 @@
     
     public Properties getExecutionProperties()
     {
+        if ( executionProperties == null )
+        {
+            executionProperties = new Properties();
+        }
         return executionProperties;
     }
 
@@ -115,6 +119,10 @@
 
     public List<String> getActiveProfileIds()
     {
+        if ( activeProfileIds == null )
+        {
+            activeProfileIds = new ArrayList<String>();
+        }
         return activeProfileIds;        
     }
 
@@ -125,6 +133,10 @@
 
     public List<String> getInactiveProfileIds()
     {
+        if ( inactiveProfileIds == null )
+        {
+            inactiveProfileIds = new ArrayList<String>();
+        }
         return inactiveProfileIds;
     }
 
@@ -150,6 +162,11 @@
 
     public List<Profile> getProfiles()
     {
+        if ( profiles == null )
+        {
+            profiles = new ArrayList<Profile>();
+        }
         return profiles;
     }
+
 }