mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prevent crash
This commit is contained in:
parent
9487046fab
commit
09e469b455
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ public class UriHelper {
|
|||
}
|
||||
|
||||
static boolean hasTld(Context context, String host) {
|
||||
return (getTld(context, host) != null);
|
||||
return (host != null && getTld(context, host) != null);
|
||||
}
|
||||
|
||||
static String getTld(Context context, @NonNull String host) {
|
||||
|
|
Loading…
Reference in a new issue