mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Prevent crash
This commit is contained in:
parent
4803a1ecbd
commit
30590c29fa
1 changed files with 8 additions and 5 deletions
|
@ -521,11 +521,14 @@ public class ContactInfo {
|
||||||
if (info.displayName == null)
|
if (info.displayName == null)
|
||||||
info.displayName = address.getPersonal();
|
info.displayName = address.getPersonal();
|
||||||
|
|
||||||
if (!info.known && !TextUtils.isEmpty(info.email)) {
|
if (!info.known && !TextUtils.isEmpty(info.email))
|
||||||
DB db = DB.getInstance(context);
|
try {
|
||||||
EntityContact contact = db.contact().getContact(account, EntityContact.TYPE_TO, info.email);
|
DB db = DB.getInstance(context);
|
||||||
info.known = (contact != null);
|
EntityContact contact = db.contact().getContact(account, EntityContact.TYPE_TO, info.email);
|
||||||
}
|
info.known = (contact != null);
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
Log.e(ex);
|
||||||
|
}
|
||||||
|
|
||||||
synchronized (emailContactInfo) {
|
synchronized (emailContactInfo) {
|
||||||
emailContactInfo.put(key, info);
|
emailContactInfo.put(key, info);
|
||||||
|
|
Loading…
Reference in a new issue