Fixed #1896 NullPointer during deobfuscation

This commit is contained in:
Jindra Petřík
2022-12-02 08:54:32 +01:00
parent b9736b3590
commit 5d7d48d90b
2 changed files with 3 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ public abstract class GetLocalTypeIns extends InstructionDefinition {
SetLocalAVM2Item setLocal = (SetLocalAVM2Item) setItem.value.getNotCoerced();
if (setLocal.regIndex == regId) {
int setLocalIp = localData.code.adr2pos(setLocal.getSrc().getAddress());
if (localData.setLocalPosToGetLocalPos.get(setLocalIp).size() == 1) {
if (localData.getSetLocalUsages(setLocalIp).size() == 1) {
if ((setItem.value instanceof CoerceAVM2Item) || (setItem.value instanceof ConvertAVM2Item)) {
setItem.value.value = setLocal.value;
} else {