Handle empty group change byte array.

master
Alan Evans 2020-07-09 14:49:46 -03:00 committed by Greyson Parrelli
parent 3c069fb588
commit a4dc340bbc
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,7 @@ public final class SignalServiceContent {
throw new ProtocolInvalidMessageException(new InvalidMessageException(e), null, 0);
}
if (groupV2.hasGroupChange()) {
if (groupV2.hasGroupChange() && !groupV2.getGroupChange().isEmpty()) {
builder.withSignedGroupChange(groupV2.getGroupChange().toByteArray());
}