mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Fix NPE on isAccountNameUsed
This commit is contained in:
parent
41244ef448
commit
91a32e9c92
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user