Don't try to inline methods without a body or no instrs

This commit is contained in:
de4dot 2012-02-03 11:10:48 +01:00
parent bc6630f760
commit ebfb88b6f1

View File

@ -108,6 +108,8 @@ namespace de4dot.code.deobfuscators.Spices_Net {
return false;
if (calledMethod == method)
return false;
if (calledMethod.Body == null || calledMethod.Body.Instructions.Count == 0)
return false;
return true;
}