mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-12 05:00:20 -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) {
|
public synchronized void deleteAccount(Account account) {
|
||||||
accounts.remove(account.getUuid());
|
if (accounts != null) {
|
||||||
accountsInOrder.remove(account);
|
accounts.remove(account.getUuid());
|
||||||
|
}
|
||||||
|
if (accountsInOrder != null) {
|
||||||
|
accountsInOrder.remove(account);
|
||||||
|
}
|
||||||
|
|
||||||
account.delete(this);
|
account.delete(this);
|
||||||
|
|
||||||
if (newAccount == account) {
|
if (newAccount == account) {
|
||||||
|
Loading…
Reference in New Issue
Block a user