mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Fixed config account crash
This commit is contained in:
parent
2683709643
commit
5250286a02
1 changed files with 4 additions and 2 deletions
|
@ -720,7 +720,8 @@ public class FragmentAccount extends FragmentBase {
|
|||
result.account = db.account().getAccount(id);
|
||||
result.folders = new ArrayList<>();
|
||||
|
||||
if (result.account.auth_type != AUTH_TYPE_PASSWORD &&
|
||||
if (result.account != null &&
|
||||
result.account.auth_type != AUTH_TYPE_PASSWORD &&
|
||||
!Objects.equals(result.account.password, password))
|
||||
auth = AUTH_TYPE_PASSWORD;
|
||||
|
||||
|
@ -988,7 +989,8 @@ public class FragmentAccount extends FragmentBase {
|
|||
DB db = DB.getInstance(context);
|
||||
EntityAccount account = db.account().getAccount(id);
|
||||
|
||||
if (account.auth_type != AUTH_TYPE_PASSWORD &&
|
||||
if (account != null &&
|
||||
account.auth_type != AUTH_TYPE_PASSWORD &&
|
||||
!Objects.equals(account.password, password))
|
||||
auth = AUTH_TYPE_PASSWORD;
|
||||
|
||||
|
|
Loading…
Reference in a new issue