Fix possible NPE

This commit is contained in:
Alexey Andreev 2021-03-31 12:53:12 +03:00
parent aa8a91d030
commit d710870c65

View File

@ -141,6 +141,9 @@ public class Devirtualization {
private void applyToCast(MethodDependencyInfo methodDep, CastInstruction cast) {
ValueDependencyInfo var = methodDep.getVariable(cast.getValue().getIndex());
if (var == null) {
return;
}
boolean canFail = false;
String failType = null;
for (String type : var.getTypes()) {