aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
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 /src/main/java
parent9992cd1b3849d6a3ef6891b6b8c7f31572d005d8 (diff)
downloadOneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.gz
OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.bz2
OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.zip
fix ExclusionUtils
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java2
1 files changed, 2 insertions, 0 deletions
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;
}