Update stirling-pdf/src/main/java/stirling/software/SPDF/controller/api/security/CertSignController.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Anthony Stirling 2025-07-04 22:54:07 +01:00 committed by GitHub
parent 9e119cc891
commit a551b3e7b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,7 +166,7 @@ public class CertSignController {
Integer pageNumber = request.getPageNumber() != null ? (request.getPageNumber() - 1) : null; Integer pageNumber = request.getPageNumber() != null ? (request.getPageNumber() - 1) : null;
Boolean showLogo = request.getShowLogo(); Boolean showLogo = request.getShowLogo();
if (certType == null || certType.trim().isEmpty()) { if (StringUtils.isBlank(certType)) {
throw ExceptionUtils.createIllegalArgumentException( throw ExceptionUtils.createIllegalArgumentException(
"error.optionsNotSpecified", "error.optionsNotSpecified",
"{0} options are not specified", "{0} options are not specified",