From 6f777607d8f1ab005e5bda03c7e4815122f65715 Mon Sep 17 00:00:00 2001 From: langghaha Date: Wed, 8 Jan 2020 19:07:50 +0800 Subject: [PATCH] replace null return value --- .../alibaba/nacos/config/server/utils/PaginationHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/src/main/java/com/alibaba/nacos/config/server/utils/PaginationHelper.java b/config/src/main/java/com/alibaba/nacos/config/server/utils/PaginationHelper.java index 36bde4f1b..db33b0eec 100644 --- a/config/src/main/java/com/alibaba/nacos/config/server/utils/PaginationHelper.java +++ b/config/src/main/java/com/alibaba/nacos/config/server/utils/PaginationHelper.java @@ -76,7 +76,7 @@ public class PaginationHelper { page.setTotalCount(rowCountInt); if (pageNo > pageCount) { - return null; + return page; } final int startRow = (pageNo - 1) * pageSize; @@ -121,7 +121,7 @@ public class PaginationHelper { page.setTotalCount(rowCountInt); if (pageNo > pageCount) { - return null; + return page; } String selectSQL = sqlFetchRows; @@ -162,7 +162,7 @@ public class PaginationHelper { page.setTotalCount(rowCountInt); if (pageNo > pageCount) { - return null; + return page; } String selectSQL = sqlFetchRows;