From 613a97906a0274589e8de970c3c4153657cb243c Mon Sep 17 00:00:00 2001 From: de4dot Date: Mon, 23 Jan 2012 23:16:01 +0100 Subject: [PATCH] Make sure method hasn't been removed --- de4dot.code/deobfuscators/DeobfuscatorBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/de4dot.code/deobfuscators/DeobfuscatorBase.cs b/de4dot.code/deobfuscators/DeobfuscatorBase.cs index ed7453a7..00038d5b 100644 --- a/de4dot.code/deobfuscators/DeobfuscatorBase.cs +++ b/de4dot.code/deobfuscators/DeobfuscatorBase.cs @@ -374,6 +374,8 @@ namespace de4dot.code.deobfuscators { if (method == null) continue; var type = method.DeclaringType; + if (type == null) + continue; if (type.Methods.Remove(method)) Log.v("Removed method {0} ({1:X8}) (Type: {2}) (reason: {3})", Utils.removeNewlines(method),