mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-19 11:16:59 +00:00
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:
parent
6d4dad2fee
commit
e1f846d3ae
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user