diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-28 17:48:21 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-28 17:48:21 +0700 |
commit | d744f11c7e93e8069319d407b9f9e8c96c408651 (patch) | |
tree | c6190e1aa793ee60cbca048ab234a19d1e84ca3b | |
parent | 9992cd1b3849d6a3ef6891b6b8c7f31572d005d8 (diff) | |
download | OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.gz OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.bz2 OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.zip |
fix ExclusionUtils
-rw-r--r-- | gradle.properties | 2 | ||||
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gradle.properties b/gradle.properties index da416a4..350fe7a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ mod_name = OneConfig mod_id = oneconfig -mod_version = 0.1.0-alpha34 +mod_version = 0.1.0-alpha35 essential.defaults.loom=0 diff --git a/src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java b/src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java index 3981134..462e2f5 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java @@ -7,7 +7,9 @@ public class ExclusionUtils { if (tempClass == parentClass) return true; while (true) { lastClass = tempClass; + if (tempClass == null) return false; tempClass = tempClass.getSuperclass(); + if (tempClass == null) return false; if (tempClass == lastClass) return false; if (tempClass == parentClass) return true; } |