From 040410d7ce5f25edbeb8b24a8995c3af252818f4 Mon Sep 17 00:00:00 2001 From: de4dot Date: Sat, 29 Oct 2011 03:39:08 +0200 Subject: [PATCH] Methods decrypter method could be null --- de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs b/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs index 337d7dfa..8287ee58 100644 --- a/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs +++ b/de4dot.code/deobfuscators/dotNET_Reactor/Deobfuscator.cs @@ -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"); }