From cb58d3c7e6ac254887654291f9922171f6b6a720 Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Wed, 17 Jul 2024 16:01:30 +0800 Subject: [PATCH] v1.3.2 --- .../java/com/io/yutian/aulib/serialize/SerializeHelper.java | 3 +++ src/main/resources/plugin.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/io/yutian/aulib/serialize/SerializeHelper.java b/src/main/java/com/io/yutian/aulib/serialize/SerializeHelper.java index 753c903..d93ce20 100644 --- a/src/main/java/com/io/yutian/aulib/serialize/SerializeHelper.java +++ b/src/main/java/com/io/yutian/aulib/serialize/SerializeHelper.java @@ -30,6 +30,9 @@ public class SerializeHelper { continue; } Object value = field.get(obj); + if (value == null) { + continue; + } Object serializeValue = serializeValue(value); jsonObject.put(field.getName(), serializeValue); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d3e2005..97866b3 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,4 +1,4 @@ name: AuLib main: com.io.yutian.aulib.AuLib -version: 1.3.1 +version: 1.3.2 author: SuperYuTian \ No newline at end of file