diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-14 02:41:27 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-14 02:41:27 +0100 |
commit | ee2fec17597c35ad2329f44cc697e18e3e4169cc (patch) | |
tree | 2121e250e4df6eb0be1447333c14ad4946094965 /libraries | |
parent | 7939aaaa440f84a0df5524f8a1a1c04dd569eedd (diff) | |
download | open-keychain-ee2fec17597c35ad2329f44cc697e18e3e4169cc.tar.gz open-keychain-ee2fec17597c35ad2329f44cc697e18e3e4169cc.tar.bz2 open-keychain-ee2fec17597c35ad2329f44cc697e18e3e4169cc.zip |
fix nullpointer
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/keychain-api-library/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/keychain-api-library/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java b/libraries/keychain-api-library/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java index 6efb507c4..d490bca0c 100644 --- a/libraries/keychain-api-library/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java +++ b/libraries/keychain-api-library/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java @@ -56,8 +56,11 @@ public class OpenPgpApi { } }); + Bundle params = new Bundle(); + params.putInt(OpenPgpConstants.PARAMS_API_VERSION, OpenPgpConstants.API_VERSION); + // blocks until result is ready - Bundle result = mService.sign(null, input, output); + Bundle result = mService.sign(params, input, output); // close() is required to halt the TransferThread output.close(); |