RED-2431 Bugfix: Check watermark text only if text is not empty
This commit is contained in:
parent
eb4bab4b52
commit
f63d111a78
@ -55,7 +55,7 @@ public class WatermarkService {
|
||||
if (watermark == null) {
|
||||
throw new BadRequestException("The watermark may not be null");
|
||||
}
|
||||
if (!StringUtils.isAsciiPrintable(StringUtils.normalizeSpace(watermark.getText()))) {
|
||||
if (StringUtils.isNotBlank(watermark.getText()) && !StringUtils.isAsciiPrintable(StringUtils.normalizeSpace(watermark.getText()))) {
|
||||
throw new BadRequestException("The watermark may only contain ASCII characters");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user