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; }