Fix crash when receiving group request for unkown group

Fixes #33
This commit is contained in:
AsamK 2016-11-26 13:26:04 +01:00
parent c542fb87cb
commit 5b839bbae0

View file

@ -938,10 +938,14 @@ class Manager implements Signal {
} }
break; break;
case REQUEST_INFO: case REQUEST_INFO:
try { if (group != null) {
sendUpdateGroupMessage(groupInfo.getGroupId(), source); try {
} catch (IOException | EncapsulatedExceptions e) { sendUpdateGroupMessage(groupInfo.getGroupId(), source);
e.printStackTrace(); } catch (IOException | EncapsulatedExceptions e) {
e.printStackTrace();
} catch (NotAGroupMemberException e) {
// We have left this group, so don't send a group update message
}
} }
break; break;
} }