1
0
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:
Marcus Wolschon 2011-10-11 08:53:51 +02:00
parent 2e2428b093
commit 4c8ebb4bcd

View File

@ -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) {