Prevent NPE

This commit is contained in:
M66B 2022-09-27 15:14:52 +02:00
parent 683a300123
commit 19baa1e928
1 changed files with 12 additions and 11 deletions

View File

@ -377,6 +377,7 @@ public class EntityMessage implements Serializable {
DB db = DB.getInstance(context);
boolean notJunk = false;
if (from != null)
for (Address sender : from) {
String email = ((InternetAddress) sender).getAddress();
if (TextUtils.isEmpty(email))