Require accounts to at least have one identity when importing

This commit is contained in:
cketti 2011-10-09 01:23:45 +02:00
parent 13b74d0d9e
commit 1de28150e2
1 changed files with 3 additions and 0 deletions

View File

@ -378,6 +378,9 @@ public class StorageImporter {
// Write identities
if (account.identities != null) {
importIdentities(editor, uuid, account, overwrite, existingAccount, prefs);
} else if (!mergeImportedAccount) {
// Require accounts to at least have one identity
throw new InvalidSettingValueException();
}
// Write folder settings