Commit 5e4a4500 authored by Andy Wilkinson's avatar Andy Wilkinson

Gracefully handle profiles in settings.xml with no <activation>

See gh-3483
parent 73b24455
......@@ -165,7 +165,9 @@ public class MavenSettings {
for (Profile profile : profiles) {
org.apache.maven.model.Profile modelProfile = new org.apache.maven.model.Profile();
modelProfile.setId(profile.getId());
modelProfile.setActivation(createModelActivation(profile.getActivation()));
if (profile.getActivation() != null) {
modelProfile.setActivation(createModelActivation(profile.getActivation()));
}
modelProfiles.add(modelProfile);
}
return modelProfiles;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment