diff --git a/src/com/fsck/k9/preferences/SettingsImporter.java b/src/com/fsck/k9/preferences/SettingsImporter.java index 8bcc5afab..5b277aa51 100644 --- a/src/com/fsck/k9/preferences/SettingsImporter.java +++ b/src/com/fsck/k9/preferences/SettingsImporter.java @@ -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; }