fix minor logic error (haha)

This commit is contained in:
Vincent Breitmoser 2014-09-30 14:10:54 +02:00
parent 354bc87579
commit 51ecce510f

View File

@ -721,7 +721,7 @@ public class UncachedKeyRing {
} }
// If we have flags, check if the algorithm supports all of them // If we have flags, check if the algorithm supports all of them
if (selfCert.getHashedSubPackets() == null if (selfCert.getHashedSubPackets() != null
&& selfCert.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.KEY_FLAGS)) { && selfCert.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.KEY_FLAGS)) {
int flags = ((KeyFlags) selfCert.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.KEY_FLAGS)).getFlags(); int flags = ((KeyFlags) selfCert.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.KEY_FLAGS)).getFlags();
int algo = key.getAlgorithm(); int algo = key.getAlgorithm();