mirror of https://github.com/M66B/FairEmail.git
Fixed crash
This commit is contained in:
parent
da1cf00c57
commit
56c0e0c863
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue