From 461d8ceda782bf2ee59e470f342d4f3740a1f382 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Wed, 23 Aug 2017 09:27:41 +0300 Subject: Fix null check in BackEndDataProvider (#9858) Fixes #9855 --- server/src/main/java/com/vaadin/data/provider/BackEndDataProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/main/java/com/vaadin/data/provider/BackEndDataProvider.java') diff --git a/server/src/main/java/com/vaadin/data/provider/BackEndDataProvider.java b/server/src/main/java/com/vaadin/data/provider/BackEndDataProvider.java index d2cb5c8c44..89f629e3ed 100644 --- a/server/src/main/java/com/vaadin/data/provider/BackEndDataProvider.java +++ b/server/src/main/java/com/vaadin/data/provider/BackEndDataProvider.java @@ -58,7 +58,7 @@ public interface BackEndDataProvider extends DataProvider { * 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()); } -- cgit v1.2.3