mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 02:50:56 +01:00
Check for empty domain name
This commit is contained in:
@@ -205,6 +205,9 @@ public class EmailProvider {
|
||||
if (at < 0)
|
||||
email = "someone@" + domain;
|
||||
|
||||
if (TextUtils.isEmpty(domain))
|
||||
throw new UnknownHostException(context.getString(R.string.title_setup_no_settings, domain));
|
||||
|
||||
if (PROPRIETARY.contains(domain))
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_standard));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user