mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 18:26:20 +00:00
Fixed crash
This commit is contained in:
parent
fc87b37b20
commit
df5a388d4d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue