Pull request #150: RED-2431 Bugfix: Check watermark text only if text is not empty
Merge in RED/persistence-service from bugfix/RED-2431 to master * commit 'f63d111a7808373cc020ed4b30c1e9257c5740aa': RED-2431 Bugfix: Check watermark text only if text is not empty
This commit is contained in:
commit
ea216f3bb8
@ -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