mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 10:22:15 -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) {
|
private static boolean isAccountNameUsed(String name, Account[] accounts) {
|
||||||
for (Account account : accounts) {
|
for (Account account : accounts) {
|
||||||
|
if (account == null)
|
||||||
|
continue;
|
||||||
if (account.getDescription().equals(name)) {
|
if (account.getDescription().equals(name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user