diff options
Diffstat (limited to 'src')
-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; } |