session().errors().addNotice("Failed to send invitation to '" + localMembership.personName() + "': " + e.getMessage());
SPUtilities.log.error("Failed to send invitation to '" + localMembership.personName() + "'.", e);
}
return null;
}
<BUG>public WOActionResults saveGroup() {
_group.editingContext().saveChanges();</BUG>
SPGroupPage groupPage = pageWithName(SPGroupPage.class);
groupPage.setGroup(_group);
return groupPage;

session().errors().addNotice("Failed to send invitation to '" + localMembership.personName() + "': " + e.getMessage());
SPUtilities.log.error("Failed to send invitation to '" + localMembership.personName() + "'.", e);
}
return null;
}
public WOActionResults saveGroup() {
if (session().errors().hasNotices()) {
return null;
}
_group.editingContext().saveChanges();
SPGroupPage groupPage = pageWithName(SPGroupPage.class);
groupPage.setGroup(_group);
return groupPage;
