Upon a quick test, the truststorefile was throwing errors because it is

not just empty but null.  Added null check first.
This commit is contained in:
Cyrus 2023-11-29 14:12:36 -05:00
parent 6d4dad2fee
commit e1f846d3ae

View File

@ -210,7 +210,7 @@ public class ReferenceManifestValidator {
log.error("Cannot validate RIM, signature element not found!");
return false;
}
if (!trustStoreFile.isEmpty()) {
if (trustStoreFile != null && !trustStoreFile.isEmpty()) {
trustStore = parseCertificatesFromPem(trustStoreFile);
}
NodeList certElement = rim.getElementsByTagName("X509Certificate");