mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +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 -> {
|
classNode.fields.forEach(field -> {
|
||||||
// Notice that fields that will be used with this algo should not have default
|
// Notice that fields that will be used with this algo should not have default
|
||||||
// value by = ...;
|
// value by = ...;
|
||||||
AnnotationNode valueAnnotation = field.invisibleAnnotations.stream()
|
AnnotationNode valueAnnotation = field.invisibleAnnotations != null ? field.invisibleAnnotations.stream()
|
||||||
.filter(annotation -> INJECTED_FIELD_DESC.equals(annotation.desc)).findFirst()
|
.filter(annotation -> INJECTED_FIELD_DESC.equals(annotation.desc)).findFirst()
|
||||||
.orElse(null);
|
.orElse(null) : null;
|
||||||
if (valueAnnotation == null) {
|
if (valueAnnotation == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue