]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix null check in BackEndDataProvider (#9858)
authorHenri Sara <henri.sara@gmail.com>
Wed, 23 Aug 2017 06:27:41 +0000 (09:27 +0300)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2017 06:27:41 +0000 (09:27 +0300)
Fixes #9855

server/src/main/java/com/vaadin/data/provider/BackEndDataProvider.java

index d2cb5c8c44aabc82768f83582bf8254fa2ac4220..89f629e3ed0f9a2d5fe5375dda682b98667473d7 100644 (file)
@@ -58,7 +58,7 @@ public interface BackEndDataProvider<T, F> extends DataProvider<T, F> {
      *             if builder is null
      */
     default void setSortOrders(QuerySortOrderBuilder builder) {
-        Objects.requireNonNull("Sort builder cannot be null.");
+        Objects.requireNonNull(builder, "Sort builder cannot be null.");
         setSortOrders(builder.build());
     }