1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Prevent crash

This commit is contained in:
M66B 2018-11-04 08:14:59 +00:00
parent ac858ced26
commit 4a0326f431

View file

@ -292,7 +292,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
}
}
if (!photo && identicons) {
if (message.from.length > 0)
if (message.from != null && message.from.length > 0)
ivAvatar.setImageBitmap(Identicon.generate(message.from[0].toString(), dp24, 5, "light".equals(theme)));
else
ivAvatar.setImageDrawable(null);