diff --git a/sqli-builder/src/main/java/io/xream/sqli/builder/internal/PageBuilderHelper.java b/sqli-builder/src/main/java/io/xream/sqli/builder/internal/PageBuilderHelper.java index dab7655..b5bc8e1 100644 --- a/sqli-builder/src/main/java/io/xream/sqli/builder/internal/PageBuilderHelper.java +++ b/sqli-builder/src/main/java/io/xream/sqli/builder/internal/PageBuilderHelper.java @@ -40,7 +40,7 @@ public static Page build(Q q, List list, TotalRows totalRows) { int size = list.size(); if (page == 0) { count = size; - } else if (size > 0) { + } else { try { count = totalRows.count(); }catch (Exception e){