diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-27 12:24:18 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-27 12:24:18 +0200 |
commit | b9e1ae971eddbe021543ce5a3dae1c77dc152138 (patch) | |
tree | d9959870a3369d2e754244c30319c91cea19e6d1 /src/main | |
parent | 96c06c797e901d67a9ba7be805a82a50efec5a53 (diff) |
fix: nullpointer in findOrFallback function
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java | 1 |
1 files changed, 1 insertions, 0 deletions
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 |