mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Prevent crash
This commit is contained in:
parent
ac858ced26
commit
4a0326f431
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue