Methods decrypter method could be null

This commit is contained in:
de4dot 2011-10-29 03:39:08 +02:00
parent def4072bc5
commit 040410d7ce

View File

@ -179,7 +179,8 @@ namespace de4dot.deobfuscators.dotNET_Reactor {
}
if (options.DecryptBools)
addResourceToBeRemoved(booleanDecrypter.BooleansResource, "Encrypted booleans");
if (Operations.DecryptStrings != OpDecryptString.None && options.DecryptMethods && options.DecryptBools)
bool deleteTypes = Operations.DecryptStrings != OpDecryptString.None && options.DecryptMethods && options.DecryptBools;
if (deleteTypes && methodsDecrypter.MethodsDecrypterMethod != null)
addTypeToBeRemoved(methodsDecrypter.MethodsDecrypterMethod.DeclaringType, "Decrypter type");
}