prevent crash

This commit is contained in:
M66B 2020-02-10 13:13:25 +01:00
parent 22121806f1
commit c473c41143
1 changed files with 3 additions and 0 deletions

View File

@ -1218,6 +1218,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibAvatar.setTag(lookupUri); ibAvatar.setTag(lookupUri);
ibAvatar.setEnabled(lookupUri != null); ibAvatar.setEnabled(lookupUri != null);
if (addresses == null)
return;
boolean known = false; boolean known = false;
boolean updated = false; boolean updated = false;
Address[] modified = Arrays.copyOf(addresses, addresses.length); Address[] modified = Arrays.copyOf(addresses, addresses.length);