diff options
-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; } |