mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-31 00:24:00 +00:00
Fixed null pointer found in git actions`
This commit is contained in:
parent
4cf08ef38a
commit
a1ebd2f962
@ -91,7 +91,7 @@ public class CertificateAuthorityCredential extends Certificate {
|
|||||||
byte[] tempBytes = getX509Certificate()
|
byte[] tempBytes = getX509Certificate()
|
||||||
.getExtensionValue(SUBJECT_KEY_IDENTIFIER_EXTENSION);
|
.getExtensionValue(SUBJECT_KEY_IDENTIFIER_EXTENSION);
|
||||||
|
|
||||||
if (tempBytes.length > CA_BYTE_SIZE) {
|
if (tempBytes != null && tempBytes.length > CA_BYTE_SIZE) {
|
||||||
this.subjectKeyIdentifier = truncatePrefixBytes(tempBytes);
|
this.subjectKeyIdentifier = truncatePrefixBytes(tempBytes);
|
||||||
} else {
|
} else {
|
||||||
this.subjectKeyIdentifier =
|
this.subjectKeyIdentifier =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user