diff options
Diffstat (limited to 'org_apg/src/org/thialfihar/android/apg/helper/PGPHelper.java')
-rw-r--r-- | org_apg/src/org/thialfihar/android/apg/helper/PGPHelper.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org_apg/src/org/thialfihar/android/apg/helper/PGPHelper.java b/org_apg/src/org/thialfihar/android/apg/helper/PGPHelper.java index 91b0bfbc0..b566cffa0 100644 --- a/org_apg/src/org/thialfihar/android/apg/helper/PGPHelper.java +++ b/org_apg/src/org/thialfihar/android/apg/helper/PGPHelper.java @@ -193,10 +193,12 @@ public class PGPHelper { public static PGPPublicKey getEncryptPublicKey(Context context, long masterKeyId) { PGPPublicKeyRing keyRing = ProviderHelper.getPGPPublicKeyRingByMasterKeyId(context, masterKeyId); if (keyRing == null) { + Log.e(Constants.TAG, "keyRing is null!"); return null; } Vector<PGPPublicKey> encryptKeys = getUsableEncryptKeys(keyRing); if (encryptKeys.size() == 0) { + Log.e(Constants.TAG, "encryptKeys is null!"); return null; } return encryptKeys.get(0); |