1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Prevent crash

This commit is contained in:
M66B 2019-12-08 14:17:27 +01:00
parent 83f8a349ab
commit 9ba74769eb

View file

@ -194,7 +194,8 @@ public class EmailProvider {
}
// https://docs.aws.amazon.com/workmail/latest/userguide/using_IMAP_client.html
if (autoconfig.imap.host.endsWith(".awsapps.com"))
if (autoconfig.imap.host != null &&
autoconfig.imap.host.endsWith(".awsapps.com"))
autoconfig.partial = false;
return autoconfig;