mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
api example: fix crash when no signature is present
This commit is contained in:
parent
c2013c9ca8
commit
f6da3e80e6
@ -185,7 +185,7 @@ public class OpenPgpProviderActivity extends Activity {
|
||||
Log.e(Constants.TAG, "UnsupportedEncodingException", e);
|
||||
}
|
||||
|
||||
if (result.containsKey(OpenPgpConstants.RESULT_SIGNATURE)) {
|
||||
if (result.getBoolean(OpenPgpConstants.RESULT_SIGNATURE, false)) {
|
||||
OpenPgpSignatureResult sigResult
|
||||
= result.getParcelable(OpenPgpConstants.RESULT_SIGNATURE);
|
||||
handleSignature(sigResult);
|
||||
|
Loading…
Reference in New Issue
Block a user