Avoid NPE when group is missing
Change-Id: If4f1f0ff086132fcad7147b375bc0317a7628790
This commit is contained in:
@@ -71,7 +71,8 @@ public abstract class ChangeEmail extends OutgoingEmail {
|
||||
final IdentifiedUser user = args.identifiedUserFactory.create(id);
|
||||
final Set<AccountGroup.UUID> gids = user.getEffectiveGroups();
|
||||
for (final AccountGroup.UUID gid : gids) {
|
||||
if (args.groupCache.get(gid).isEmailOnlyAuthors()) {
|
||||
AccountGroup group = args.groupCache.get(gid);
|
||||
if (group != null && group.isEmailOnlyAuthors()) {
|
||||
emailOnlyAuthors = true;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user