From 02c422cb26659df3185b0b70d7a9d9f01a483bf2 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 1 Dec 2017 13:56:56 -0800 Subject: [PATCH] Some old group avatar IDs can be 0 Fixes #7235 --- .../thoughtcrime/securesms/recipients/RecipientProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java b/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java index 981ddac890..35611c65b1 100644 --- a/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java +++ b/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java @@ -141,7 +141,7 @@ class RecipientProvider { title = context.getString(R.string.RecipientProvider_unnamed_group); } - if (groupRecord.get().getAvatarId() != 0) { + if (groupRecord.get().getAvatar() != null && groupRecord.get().getAvatar().length > 0) { avatarId = groupRecord.get().getAvatarId(); }