diff --git a/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java b/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java index a55fe35..36736f8 100644 --- a/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java +++ b/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java @@ -59,10 +59,8 @@ public class BoundedList extends ArrayList { Pageable row = (Pageable)first; totalSize = row.getTotalSize(); } - return totalSize; } - - return totalSize = size(); + return totalSize < 1 ? totalSize = size() : totalSize; } /**원래 요소의 전체 갯수를 설정한다. * @param totalSize 원래 요소의 전체 갯수