mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-17 07:30:14 -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);
|
Log.e(Constants.TAG, "UnsupportedEncodingException", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.containsKey(OpenPgpConstants.RESULT_SIGNATURE)) {
|
if (result.getBoolean(OpenPgpConstants.RESULT_SIGNATURE, false)) {
|
||||||
OpenPgpSignatureResult sigResult
|
OpenPgpSignatureResult sigResult
|
||||||
= result.getParcelable(OpenPgpConstants.RESULT_SIGNATURE);
|
= result.getParcelable(OpenPgpConstants.RESULT_SIGNATURE);
|
||||||
handleSignature(sigResult);
|
handleSignature(sigResult);
|
||||||
|
Loading…
Reference in New Issue
Block a user