mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
8ffb1c4156
commit
ddc64a56e5
|
@ -558,10 +558,12 @@ public class FragmentIdentity extends FragmentEx {
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
EntityIdentity identity = db.identity().getIdentity(id);
|
EntityIdentity identity = db.identity().getIdentity(id);
|
||||||
|
|
||||||
|
String identityRealm = (identity == null ? null : identity.realm);
|
||||||
|
|
||||||
boolean check = (synchronize && (identity == null ||
|
boolean check = (synchronize && (identity == null ||
|
||||||
!host.equals(identity.host) || Integer.parseInt(port) != identity.port ||
|
!host.equals(identity.host) || Integer.parseInt(port) != identity.port ||
|
||||||
!user.equals(identity.user) || !password.equals(identity.password) ||
|
!user.equals(identity.user) || !password.equals(identity.password) ||
|
||||||
realm == null ? identity.realm != null : !realm.equals(identity.realm)));
|
realm == null ? identityRealm != null : !realm.equals(identityRealm)));
|
||||||
boolean reload = (identity == null || identity.synchronize != synchronize || check);
|
boolean reload = (identity == null || identity.synchronize != synchronize || check);
|
||||||
|
|
||||||
// Check SMTP server
|
// Check SMTP server
|
||||||
|
|
Loading…
Reference in New Issue