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