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 /src/main/java/cc/polyfrost/oneconfig | |
parent | 9992cd1b3849d6a3ef6891b6b8c7f31572d005d8 (diff) | |
download | OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.gz OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.tar.bz2 OneConfig-d744f11c7e93e8069319d407b9f9e8c96c408651.zip |
fix ExclusionUtils
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java | 2 |
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; } |