mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-18 02:39:56 +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()
|
||||
.getExtensionValue(SUBJECT_KEY_IDENTIFIER_EXTENSION);
|
||||
|
||||
if (tempBytes.length > CA_BYTE_SIZE) {
|
||||
if (tempBytes != null && tempBytes.length > CA_BYTE_SIZE) {
|
||||
this.subjectKeyIdentifier = truncatePrefixBytes(tempBytes);
|
||||
} else {
|
||||
this.subjectKeyIdentifier =
|
||||
|
Loading…
Reference in New Issue
Block a user