mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix possible NPE
This commit is contained in:
parent
aa8a91d030
commit
d710870c65
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user