openpgp-keychain/openpgp-keychain — pull request #469 by honnel (2014-03-22 14:48:17+00:00)
Title: Can't save key after key generation

The current implementation of saving new generated key doesn't save the key due to the public key of master key id can not be resolved by `ProviderHelper.getPGPPublicKeyByKeyId` (via URI/Cursor). Workaround uses local keys-arraylist for resoving the pubkey of master key id.

03-22 15:38:52.166 28363-28531/org.sufficientlysecure.keychain E/Keychain﹕ ApgService Exception:
java.lang.NullPointerException
at org.sufficientlysecure.keychain.pgp.PgpKeyOperation.buildSecretKey(PgpKeyOperation.java:435)
at org.sufficientlysecure.keychain.service.KeychainIntentService.onHandleIntent(KeychainIntentService.java:554)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)

Does anybody know how to setup a cursor as needed to handle via `ProviderHelper.getPGPPublicKeyByKeyId`?