mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
fix minor logic error (haha)
This commit is contained in:
parent
354bc87579
commit
51ecce510f
@ -721,7 +721,7 @@ public class UncachedKeyRing {
|
||||
}
|
||||
|
||||
// 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)) {
|
||||
int flags = ((KeyFlags) selfCert.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.KEY_FLAGS)).getFlags();
|
||||
int algo = key.getAlgorithm();
|
||||
|
Loading…
Reference in New Issue
Block a user