mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-07 10:40:11 -05:00
added check for Null
This commit is contained in:
parent
2e2428b093
commit
4c8ebb4bcd
@ -129,8 +129,13 @@ public class Preferences {
|
||||
}
|
||||
|
||||
public synchronized void deleteAccount(Account account) {
|
||||
accounts.remove(account.getUuid());
|
||||
accountsInOrder.remove(account);
|
||||
if (accounts != null) {
|
||||
accounts.remove(account.getUuid());
|
||||
}
|
||||
if (accountsInOrder != null) {
|
||||
accountsInOrder.remove(account);
|
||||
}
|
||||
|
||||
account.delete(this);
|
||||
|
||||
if (newAccount == account) {
|
||||
|
Loading…
Reference in New Issue
Block a user