From b9e1ae971eddbe021543ce5a3dae1c77dc152138 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Mon, 27 Mar 2023 12:24:18 +0200 Subject: [PATCH] fix: nullpointer in findOrFallback function --- .../ftbsc/lll/processor/tools/containers/ClassContainer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java b/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java index 0e47842..3ea6a62 100644 --- a/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java +++ b/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java @@ -126,6 +126,7 @@ public class ClassContainer { * @since 0.5.0 */ public static ClassContainer findOrFallback(ClassContainer fallback, Find f, ProcessingEnvironment env, ObfuscationMapper mapper) { + if(f == null) return fallback; ClassContainer cl = ClassContainer.from(f, Find::value, f.className(), env, mapper); return cl.fqn.equals("java.lang.Object") ? fallback