prevent NPE in getRevocationReason()
This commit is contained in:
parent
c9f9ad0477
commit
e73596f7b9
|
@ -130,6 +130,9 @@ public class WrappedSignature {
|
|||
}
|
||||
SignatureSubpacket p = mSig.getHashedSubPackets().getSubpacket(
|
||||
SignatureSubpacketTags.REVOCATION_REASON);
|
||||
if (p == null) {
|
||||
return null;
|
||||
}
|
||||
// For some reason, this is missing in SignatureSubpacketInputStream:146
|
||||
if (!(p instanceof RevocationReason)) {
|
||||
p = new RevocationReason(false, false, p.getData());
|
||||
|
|
Loading…
Reference in a new issue