fix: resolve NPE due to not yet processed class (#595)
This commit is contained in:
@@ -227,10 +227,6 @@ public class ModVisitor extends AbstractVisitor {
|
||||
if (callMthNode == null) {
|
||||
return;
|
||||
}
|
||||
Map<InsnArg, FieldNode> argsMap = getArgsToFieldsMapping(callMthNode, co);
|
||||
if (argsMap.isEmpty() && !callMthNode.getArguments(true).isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ClassNode classNode = callMthNode.getParentClass();
|
||||
if (!classNode.contains(AFlag.ANONYMOUS_CLASS)) {
|
||||
@@ -242,6 +238,10 @@ public class ModVisitor extends AbstractVisitor {
|
||||
if (!mth.getParentClass().getInnerClasses().contains(classNode)) {
|
||||
return;
|
||||
}
|
||||
Map<InsnArg, FieldNode> argsMap = getArgsToFieldsMapping(callMthNode, co);
|
||||
if (argsMap.isEmpty() && !callMthNode.getArguments(true).isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (Map.Entry<InsnArg, FieldNode> entry : argsMap.entrySet()) {
|
||||
FieldNode field = entry.getValue();
|
||||
|
||||
Reference in New Issue
Block a user