1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Fix NPE on isAccountNameUsed

This commit is contained in:
Uni- 2013-03-05 16:29:03 +09:00
parent 41244ef448
commit 91a32e9c92

View File

@ -596,6 +596,8 @@ public class SettingsImporter {
private static boolean isAccountNameUsed(String name, Account[] accounts) {
for (Account account : accounts) {
if (account == null)
continue;
if (account.getDescription().equals(name)) {
return true;
}