Skip to content

Commit

Permalink
Merge pull request #33 from aalmiray/fix-required-error-key-check
Browse files Browse the repository at this point in the history
Check against empty requiredError instead of null
  • Loading branch information
dlemmermann authored Aug 10, 2018
2 parents d495a0e + edc5d21 commit 374c6b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ public boolean validate() {
String newValue = userInput.getValue();

if (!validateRequired(newValue)) {
if (isI18N() && requiredErrorKey.get() != null) {
if (isI18N() && !requiredErrorKey.get().isEmpty()) {
errorMessageKeys.setAll(requiredErrorKey.get());
} else if (requiredError.get() != null) {
} else if (!requiredError.get().isEmpty()) {
errorMessages.setAll(requiredError.get());
}

Expand Down

0 comments on commit 374c6b9

Please sign in to comment.