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