Skip to content

Commit e50e5f9

Browse files
committed
DATAES-402 - fixed broken tests
1 parent 4856974 commit e50e5f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/springframework/data/elasticsearch/core/FacetedPageImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
import org.springframework.data.elasticsearch.core.facet.result.Term;
4141
import org.springframework.data.elasticsearch.core.facet.result.TermResult;
4242

43+
import static java.util.Optional.ofNullable;
44+
4345
/**
4446
* Container for query result and facet results
4547
*
@@ -61,7 +63,7 @@ public FacetedPageImpl(List<T> content) {
6163
}
6264

6365
public FacetedPageImpl(List<T> content, Pageable pageable, long total) {
64-
super(content, pageable, total);
66+
super(content, ofNullable(pageable).orElse(Pageable.unpaged()), total);
6567
}
6668

6769
@Override

0 commit comments

Comments
 (0)