Don't cast to a possible value type when result can be null

This commit is contained in:
de4dot 2012-07-29 09:49:00 +02:00
parent f3c68595eb
commit f07f664553

View File

@ -58,7 +58,7 @@ namespace de4dot.code.deobfuscators {
foreach (var tmp in callResults) {
var callResult = (MyCallResult)tmp;
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);
}
}