Add missing verb to the error message.

Closes #2524
This commit is contained in:
yelis913
2022-01-08 17:13:19 +03:00
committed by Mark Paluch
parent f068af8b4a
commit 16bbaf5886

View File

@@ -454,7 +454,7 @@ public class Sort implements Streamable<org.springframework.data.domain.Sort.Ord
private Order(@Nullable Direction direction, String property, boolean ignoreCase, NullHandling nullHandling) {
if (!StringUtils.hasText(property)) {
throw new IllegalArgumentException("Property must not null or empty!");
throw new IllegalArgumentException("Property must not be null or empty!");
}
this.direction = direction == null ? DEFAULT_DIRECTION : direction;