Update app/core/src/main/java/stirling/software/SPDF/controller/api/security/WatermarkController.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Anton Arhipov 2025-10-29 13:33:00 +02:00 committed by GitHub
parent 7d0b8789d5
commit 56c88fba3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ public class WatermarkController {
throw new IllegalArgumentException(errorMsg);
}
// Validate a color format when not using random color
// Validate color format when not using random color
String customColor = request.getCustomColor();
Boolean randomColor = request.getRandomColor();
if (customColor != null && !Boolean.TRUE.equals(randomColor)) {