1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-03 18:26:20 +00:00

Fixed crash

This commit is contained in:
M66B 2019-01-19 15:24:45 +00:00
parent fc87b37b20
commit df5a388d4d

View file

@ -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(),