mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Prevent crash
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user