mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] NPE в InjectClassAcceptor
This commit is contained in:
parent
63ea1f59b0
commit
d68e1f781e
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ private static void visit(ClassNode classNode, Map<String, Object> values) {
|
|||
classNode.fields.forEach(field -> {
|
||||
// Notice that fields that will be used with this algo should not have default
|
||||
// value by = ...;
|
||||
AnnotationNode valueAnnotation = field.invisibleAnnotations.stream()
|
||||
AnnotationNode valueAnnotation = field.invisibleAnnotations != null ? field.invisibleAnnotations.stream()
|
||||
.filter(annotation -> INJECTED_FIELD_DESC.equals(annotation.desc)).findFirst()
|
||||
.orElse(null);
|
||||
.orElse(null) : null;
|
||||
if (valueAnnotation == null) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue