mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 14:11:00 +00:00
Prevent crash
This commit is contained in:
parent
efbad2ac4f
commit
ad6711ccb1
1 changed files with 5 additions and 2 deletions
|
@ -568,8 +568,11 @@ public class Helper {
|
|||
|
||||
static String canonicalAddress(String address) {
|
||||
String[] a = address.split("@");
|
||||
if (a.length > 0)
|
||||
a[0] = a[0].split("\\+")[0];
|
||||
if (a.length > 0) {
|
||||
String[] extra = a[0].split("\\+");
|
||||
if (extra.length > 0)
|
||||
a[0] = extra[0];
|
||||
}
|
||||
return TextUtils.join("@", a);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue