canonicalize: fix NullPointerException

This commit is contained in:
Vincent Breitmoser 2014-06-17 11:57:14 +02:00
parent ffea551afc
commit 9058291c05

View File

@ -179,7 +179,8 @@ public class WrappedSignature {
} }
public boolean isLocal() { public boolean isLocal() {
if (!mSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.EXPORTABLE)) { if (!mSig.hasSubpackets()
|| !mSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.EXPORTABLE)) {
return false; return false;
} }
SignatureSubpacket p = mSig.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.EXPORTABLE); SignatureSubpacket p = mSig.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.EXPORTABLE);