mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-19 13:48:58 +00:00
Prevent crash
This commit is contained in:
parent
8ffb1c4156
commit
ddc64a56e5
1 changed files with 3 additions and 1 deletions
|
@ -558,10 +558,12 @@ public class FragmentIdentity extends FragmentEx {
|
|||
DB db = DB.getInstance(context);
|
||||
EntityIdentity identity = db.identity().getIdentity(id);
|
||||
|
||||
String identityRealm = (identity == null ? null : identity.realm);
|
||||
|
||||
boolean check = (synchronize && (identity == null ||
|
||||
!host.equals(identity.host) || Integer.parseInt(port) != identity.port ||
|
||||
!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);
|
||||
|
||||
// Check SMTP server
|
||||
|
|
Loading…
Reference in a new issue