mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-14 05:19:20 +01:00
fix: nullpointer in findOrFallback function
This commit is contained in:
parent
96c06c797e
commit
b9e1ae971e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue