mirror of https://github.com/M66B/FairEmail.git
Prevent NPE
This commit is contained in:
parent
683a300123
commit
19baa1e928
|
@ -377,6 +377,7 @@ public class EntityMessage implements Serializable {
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
|
|
||||||
boolean notJunk = false;
|
boolean notJunk = false;
|
||||||
|
if (from != null)
|
||||||
for (Address sender : from) {
|
for (Address sender : from) {
|
||||||
String email = ((InternetAddress) sender).getAddress();
|
String email = ((InternetAddress) sender).getAddress();
|
||||||
if (TextUtils.isEmpty(email))
|
if (TextUtils.isEmpty(email))
|
||||||
|
|
Loading…
Reference in New Issue