aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-28 17:48:21 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-28 17:48:21 +0700
commitd744f11c7e93e8069319d407b9f9e8c96c408651 (patch)
treec6190e1aa793ee60cbca048ab234a19d1e84ca3b
parent9992cd1b3849d6a3ef6891b6b8c7f31572d005d8 (diff)
downloadOneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.gz
OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.bz2
OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.zip
fix ExclusionUtils
-rw-r--r--gradle.properties2
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java2
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;
}