Fix crash when trying to update a group call without an era id.

This commit is contained in:
Cody Henthorne
2023-01-25 16:41:27 -05:00
committed by Greyson Parrelli
parent 32dd227ab6
commit e0633180ef
3 changed files with 9 additions and 4 deletions

View File

@@ -1034,7 +1034,12 @@ public class SignalServiceMessageSender {
}
if (message.getGroupCallUpdate().isPresent()) {
builder.setGroupCallUpdate(DataMessage.GroupCallUpdate.newBuilder().setEraId(message.getGroupCallUpdate().get().getEraId()));
String eraId = message.getGroupCallUpdate().get().getEraId();
if (eraId != null) {
builder.setGroupCallUpdate(DataMessage.GroupCallUpdate.newBuilder().setEraId(eraId));
} else {
builder.setGroupCallUpdate(DataMessage.GroupCallUpdate.getDefaultInstance());
}
}
if (message.getPayment().isPresent()) {