From 062ecaaef25fa0547a75dd8641901583919d7e63 Mon Sep 17 00:00:00 2001 From: de4dot Date: Thu, 29 Sep 2011 19:00:34 +0200 Subject: [PATCH] Ignore emtpy strings when renaming resources in code --- de4dot.code/renamer/Module.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/de4dot.code/renamer/Module.cs b/de4dot.code/renamer/Module.cs index c75616da..233d42c7 100644 --- a/de4dot.code/renamer/Module.cs +++ b/de4dot.code/renamer/Module.cs @@ -127,6 +127,8 @@ namespace de4dot.renamer { if (instr.OpCode != OpCodes.Ldstr) continue; var s = (string)instr.Operand; + if (string.IsNullOrEmpty(s)) + continue; // Ignore emtpy strings since we'll get lots of false warnings string newName = null; string oldName = null;