diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-08-28 13:10:52 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-08-28 13:10:52 +0200 |
commit | 677d9e6023e309982352574f173435c29e7ad551 (patch) | |
tree | dec92683ccdbd7119db3b9bc9fb47f8d447d785a /OpenKeychain/src/main/java | |
parent | aeb029657224733e1ab0e84af615011d62655ef3 (diff) | |
download | open-keychain-677d9e6023e309982352574f173435c29e7ad551.tar.gz open-keychain-677d9e6023e309982352574f173435c29e7ad551.tar.bz2 open-keychain-677d9e6023e309982352574f173435c29e7ad551.zip |
Fix crash in PgpKeyHelper
Diffstat (limited to 'OpenKeychain/src/main/java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java index 05acb86df..165382bda 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyHelper.java @@ -95,7 +95,7 @@ public class PgpKeyHelper { break; } } - if (keySize > 0) + if (keySize != null && keySize > 0) return algorithmStr + ", " + keySize + " bit"; else return algorithmStr; |