DATACMNS-713 - Disabled total adaption in PageImpl for empty pages.
The newly introduced adaption of the total in PageImpl must only be applied if the page accessed is not empty.
This commit is contained in:
@@ -45,7 +45,7 @@ public class PageImpl<T> extends Chunk<T> implements Page<T> {
|
||||
super(content, pageable);
|
||||
|
||||
this.pageable = pageable;
|
||||
this.total = pageable != null && pageable.getOffset() + pageable.getPageSize() > total
|
||||
this.total = !content.isEmpty() && pageable != null && pageable.getOffset() + pageable.getPageSize() > total
|
||||
? pageable.getOffset() + content.size() : total;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user