Don't cast to a possible value type when result can be null
This commit is contained in:
parent
f3c68595eb
commit
f07f664553
|
@ -58,7 +58,7 @@ namespace de4dot.code.deobfuscators {
|
||||||
foreach (var tmp in callResults) {
|
foreach (var tmp in callResults) {
|
||||||
var callResult = (MyCallResult)tmp;
|
var callResult = (MyCallResult)tmp;
|
||||||
var handler = decrypterMethods.find(callResult.methodReference);
|
var handler = decrypterMethods.find(callResult.methodReference);
|
||||||
callResult.returnValue = (TValue)handler((MethodDefinition)callResult.methodReference, callResult.gim, callResult.args);
|
callResult.returnValue = handler((MethodDefinition)callResult.methodReference, callResult.gim, callResult.args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user