o Prevented NPEs in downstream code

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@777957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-05-23 16:37:46 +00:00
parent f17f9aa639
commit ba57376e69
1 changed files with 17 additions and 0 deletions

View File

@ -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<String> getActiveProfileIds()
{
if ( activeProfileIds == null )
{
activeProfileIds = new ArrayList<String>();
}
return activeProfileIds;
}
@ -125,6 +133,10 @@ public class DefaultProjectBuilderConfiguration
public List<String> getInactiveProfileIds()
{
if ( inactiveProfileIds == null )
{
inactiveProfileIds = new ArrayList<String>();
}
return inactiveProfileIds;
}
@ -150,6 +162,11 @@ public class DefaultProjectBuilderConfiguration
public List<Profile> getProfiles()
{
if ( profiles == null )
{
profiles = new ArrayList<Profile>();
}
return profiles;
}
}