Improve internal group handling for receiving

This commit is contained in:
AsamK
2016-06-19 18:33:24 +02:00
parent d9b082a59e
commit 9427616906
3 changed files with 42 additions and 39 deletions

View File

@@ -25,11 +25,8 @@ public class JsonGroupStore {
groups.put(Base64.encodeBytes(group.groupId), group);
}
GroupInfo getGroup(byte[] groupId) throws GroupNotFoundException {
GroupInfo getGroup(byte[] groupId) {
GroupInfo g = groups.get(Base64.encodeBytes(groupId));
if (g == null) {
throw new GroupNotFoundException(groupId);
}
return g;
}