mirror of https://github.com/apache/maven.git
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:
parent
f17f9aa639
commit
ba57376e69
|
@ -82,6 +82,10 @@ public class DefaultProjectBuilderConfiguration
|
||||||
|
|
||||||
public Properties getExecutionProperties()
|
public Properties getExecutionProperties()
|
||||||
{
|
{
|
||||||
|
if ( executionProperties == null )
|
||||||
|
{
|
||||||
|
executionProperties = new Properties();
|
||||||
|
}
|
||||||
return executionProperties;
|
return executionProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,6 +119,10 @@ public class DefaultProjectBuilderConfiguration
|
||||||
|
|
||||||
public List<String> getActiveProfileIds()
|
public List<String> getActiveProfileIds()
|
||||||
{
|
{
|
||||||
|
if ( activeProfileIds == null )
|
||||||
|
{
|
||||||
|
activeProfileIds = new ArrayList<String>();
|
||||||
|
}
|
||||||
return activeProfileIds;
|
return activeProfileIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,6 +133,10 @@ public class DefaultProjectBuilderConfiguration
|
||||||
|
|
||||||
public List<String> getInactiveProfileIds()
|
public List<String> getInactiveProfileIds()
|
||||||
{
|
{
|
||||||
|
if ( inactiveProfileIds == null )
|
||||||
|
{
|
||||||
|
inactiveProfileIds = new ArrayList<String>();
|
||||||
|
}
|
||||||
return inactiveProfileIds;
|
return inactiveProfileIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,6 +162,11 @@ public class DefaultProjectBuilderConfiguration
|
||||||
|
|
||||||
public List<Profile> getProfiles()
|
public List<Profile> getProfiles()
|
||||||
{
|
{
|
||||||
|
if ( profiles == null )
|
||||||
|
{
|
||||||
|
profiles = new ArrayList<Profile>();
|
||||||
|
}
|
||||||
return profiles;
|
return profiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue