Fix potential crash with a bad group update body.

This commit is contained in:
Greyson Parrelli
2021-09-14 09:08:04 -04:00
parent 573c0fad7f
commit 8df86962e9

View File

@@ -258,7 +258,7 @@ public abstract class MessageRecord extends DisplayRecord {
}
return UpdateDescription.concatWithNewLines(newGroupDescriptions);
}
} catch (IOException e) {
} catch (IOException | IllegalArgumentException e) {
Log.w(TAG, "GV2 Message update detail could not be read", e);
return staticUpdateDescription(context.getString(R.string.MessageRecord_group_updated), R.drawable.ic_update_group_16);
}