diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-09 22:39:44 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-09 22:39:44 +0200 |
commit | 59c0948fa86243f1c3f6a26fce5946dc90caf2a6 (patch) | |
tree | a59d42657fe68118b4c5f79d3a3d29ac163fc0ea /OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure | |
parent | 94a81dd8ae836f991f1017e5ac2c7b0f90b3854d (diff) | |
download | open-keychain-59c0948fa86243f1c3f6a26fce5946dc90caf2a6.tar.gz open-keychain-59c0948fa86243f1c3f6a26fce5946dc90caf2a6.tar.bz2 open-keychain-59c0948fa86243f1c3f6a26fce5946dc90caf2a6.zip |
get signature result only when not null
Diffstat (limited to 'OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure')
-rw-r--r-- | OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java index ab5795c1c..7bfd72540 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java +++ b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java @@ -103,9 +103,11 @@ public class CryptoProviderDemoActivity extends Activity { @Override public void run() { mMessage.setText(new String(outputBytes)); - Toast.makeText(CryptoProviderDemoActivity.this, - "signature result:\n" + signatureResult.toString(), Toast.LENGTH_LONG) - .show(); + if (signatureResult != null) { + Toast.makeText(CryptoProviderDemoActivity.this, + "signature result:\n" + signatureResult.toString(), + Toast.LENGTH_LONG).show(); + } } }); |