Prevent crash

This commit is contained in:
M66B
2023-10-28 12:51:05 +02:00
parent 9487046fab
commit 09e469b455

View File

@@ -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) {