Fix NPE on isAccountNameUsed

This commit is contained in:
Uni- 2013-03-05 16:29:03 +09:00
parent 41244ef448
commit 91a32e9c92
1 changed files with 2 additions and 0 deletions

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;
}