Skip to content

Commit

Permalink
Add Null Check to Download
Browse files Browse the repository at this point in the history
  • Loading branch information
f11h authored May 11, 2021
2 parents 8bd9504 + 8b5608a commit b26a3cb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ private boolean checkUploadCertificate(TrustListItemDto trustListItem) {
new SignedCertificateMessageParser(trustListItem.getSignature(), trustListItem.getRawData());
X509CertificateHolder uploadCertificate = parser.getSigningCertificate();

if (uploadCertificate == null) {
return false;
}

return trustedUploadCertificates
.stream()
.anyMatch(uploadCertificate::equals);
Expand Down

0 comments on commit b26a3cb

Please sign in to comment.