From 74fd00ae034bfc661a34e1eaf7fadc4fb16a4f3a Mon Sep 17 00:00:00 2001 From: ms <8078641+musss@user.noreply.gitee.com> Date: Tue, 2 Dec 2025 09:26:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(reverseNew=E6=96=B9=E6=B3=95=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E7=A9=BA=E6=8C=87=E9=92=88=E9=A3=8E=E9=99=A9)?= =?UTF-8?q?=EF=BC=9Alist=20=E4=B8=BA=20null=EF=BC=8C=E5=90=8E=E7=BB=AD?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BC=9A=E5=AF=BC=E8=87=B4=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=E5=BC=82=E5=B8=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/hutool/core/collection/ListUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hutool-core/src/main/java/cn/hutool/core/collection/ListUtil.java b/hutool-core/src/main/java/cn/hutool/core/collection/ListUtil.java index 7a104c787f..e7e3def23d 100755 --- a/hutool-core/src/main/java/cn/hutool/core/collection/ListUtil.java +++ b/hutool-core/src/main/java/cn/hutool/core/collection/ListUtil.java @@ -360,6 +360,9 @@ public class ListUtil { * @since 4.0.6 */ public static List reverseNew(List list) { + if (list == null) { + return null; + } List list2 = ObjectUtil.clone(list); if (null == list2) { // 不支持clone -- Gitee