From 025e8ac4da17d1dcaf74f6bd23197c1142e7cc7d Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sun, 30 Apr 2023 09:58:29 +0800 Subject: [PATCH] fix bug. --- src/main/java/xyz/zhouxy/plusone/commons/util/PageDTO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/PageDTO.java b/src/main/java/xyz/zhouxy/plusone/commons/util/PageDTO.java index 963e028..6cb51ad 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/PageDTO.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/PageDTO.java @@ -35,7 +35,7 @@ public class PageDTO { private final List content; private PageDTO(List content, long total) { - Assert.isNotEmpty(content, "Content must not be null."); + Assert.notNull(content, "Content must not be null."); this.content = content; this.total = total; }