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

See gh-3483
pull/3487/head
Andy Wilkinson 9 years ago
parent 73b24455dd
commit 5e4a450030

@ -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());
if (profile.getActivation() != null) {
modelProfile.setActivation(createModelActivation(profile.getActivation()));
}
modelProfiles.add(modelProfile);
}
return modelProfiles;

Loading…
Cancel
Save