Throw an exception when a referenced group is not found
Change-Id: Id3c61dcf70492ba05475df4656fd89bad40c9324
This commit is contained in:
		| @@ -130,7 +130,7 @@ public class AccountCreator { | ||||
|       if (groupNames != null) { | ||||
|         for (String n : groupNames) { | ||||
|           AccountGroup.NameKey k = new AccountGroup.NameKey(n); | ||||
|           Optional<AccountGroup> group = groups.get(db, k); | ||||
|           Optional<AccountGroup> group = groups.getGroup(db, k); | ||||
|           if (!group.isPresent()) { | ||||
|             throw new NoSuchGroupException(n); | ||||
|           } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alice Kober-Sotzek
					Alice Kober-Sotzek