Fixed crash

This commit is contained in:
M66B 2019-09-22 20:36:08 +02:00
parent da1cf00c57
commit 56c0e0c863
1 changed files with 5 additions and 0 deletions

View File

@ -715,11 +715,16 @@ public class MessageHelper {
static boolean sameAddress(Address address1, String email2) {
String email1 = ((InternetAddress) address1).getAddress();
if (email1 == null)
return false;
return email1.equalsIgnoreCase(email2);
}
static boolean similarAddress(Address address1, String email2) {
String email1 = ((InternetAddress) address1).getAddress();
if (email1 == null)
return false;
if (!email1.contains("@") || !email2.contains("@"))
return false;