diff options
author | Ashley Hughes <spirit.returned@gmail.com> | 2014-03-06 13:00:17 +0000 |
---|---|---|
committer | Ashley Hughes <spirit.returned@gmail.com> | 2014-03-06 13:00:17 +0000 |
commit | 01951810ae1b3a0e4fefab7d55c090fc8f776ce5 (patch) | |
tree | 51d7f164bd53cbfecd9dcc727f249dcf2ee7ddda /OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service | |
parent | 8662ca2928ac0b007d4ee5d00f6de3211f5d3d2c (diff) | |
download | open-keychain-01951810ae1b3a0e4fefab7d55c090fc8f776ce5.tar.gz open-keychain-01951810ae1b3a0e4fefab7d55c090fc8f776ce5.tar.bz2 open-keychain-01951810ae1b3a0e4fefab7d55c090fc8f776ce5.zip |
fix saving new key (tmp)
Diffstat (limited to 'OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service')
-rw-r--r-- | OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java index 3610ddc9e..9d6e24d30 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java @@ -550,8 +550,13 @@ public class KeychainIntentService extends IntentService implements ProgressDial ArrayList<String> deleted_ids = data.getStringArrayList(SAVE_KEYRING_DELETED_IDS); boolean[] modded_keys = data.getBooleanArray(SAVE_KEYRING_MODDED_KEYS); boolean[] new_keys = data.getBooleanArray(SAVE_KEYRING_NEW_KEYS); - ArrayList<PGPSecretKey> deletedKeys = PgpConversionHelper.BytesToPGPSecretKeyList(data + byte[] tmp = data.getByteArray(SAVE_KEYRING_DELETED_KEYS); + ArrayList<PGPSecretKey> deletedKeys; + if (tmp != null) + deletedKeys = PgpConversionHelper.BytesToPGPSecretKeyList(data .getByteArray(SAVE_KEYRING_DELETED_KEYS)); + else + deletedKeys = new ArrayList<PGPSecretKey>(); boolean primaryChanged = data.getBoolean(SAVE_KEYRING_PRIMARY_ID_CHANGED); long masterKeyId = data.getLong(SAVE_KEYRING_MASTER_KEY_ID); |