aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2014-06-17 11:57:14 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2014-06-17 11:57:14 +0200
commit9058291c0504c0684ef9d84edbc2c4e7c446d6d2 (patch)
tree1e52ed22764112ee7c21c9bd532db8c919f71b3c /OpenKeychain/src
parentffea551afc95ec68892ca9003f99c383c7cc5661 (diff)
downloadopen-keychain-9058291c0504c0684ef9d84edbc2c4e7c446d6d2.tar.gz
open-keychain-9058291c0504c0684ef9d84edbc2c4e7c446d6d2.tar.bz2
open-keychain-9058291c0504c0684ef9d84edbc2c4e7c446d6d2.zip
canonicalize: fix NullPointerException
Diffstat (limited to 'OpenKeychain/src')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/WrappedSignature.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/WrappedSignature.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/WrappedSignature.java
index be7f960a9..196ac1dee 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/WrappedSignature.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/WrappedSignature.java
@@ -179,7 +179,8 @@ public class WrappedSignature {
}
public boolean isLocal() {
- if (!mSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.EXPORTABLE)) {
+ if (!mSig.hasSubpackets()
+ || !mSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.EXPORTABLE)) {
return false;
}
SignatureSubpacket p = mSig.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.EXPORTABLE);