From d744f11c7e93e8069319d407b9f9e8c96c408651 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Tue, 28 Jun 2022 17:48:21 +0700 Subject: fix ExclusionUtils --- src/main/java/cc/polyfrost/oneconfig/config/gson/ExclusionUtils.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java') 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; } -- cgit