Fixed crash

pull/147/head
M66B 6 years ago
parent fc87b37b20
commit df5a388d4d

@ -429,7 +429,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ContactInfo info = ContactInfo.get(context, addresses);
if ((info == null || !info.hasPhoto()) && identicons) {
if ((info == null || !info.hasPhoto()) &&
identicons && addresses != null && addresses.length > 0) {
Drawable ident = new BitmapDrawable(
context.getResources(),
Identicon.generate(addresses[0].toString(),

Loading…
Cancel
Save