Ignore emtpy strings when renaming resources in code

This commit is contained in:
de4dot 2011-09-29 19:00:34 +02:00
parent c668dbdf87
commit 062ecaaef2

View File

@ -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;