This commit is contained in:
Adam
2016-03-24 10:14:22 -04:00
parent 2fdf2b47bc
commit e73be15286

View File

@@ -65,20 +65,12 @@ public class IllegalStateExceptions implements Deobfuscator
if (ics == null) if (ics == null)
continue; // never executed continue; // never executed
boolean found = false;
for (InstructionContext ic : ics) for (InstructionContext ic : ics)
{ {
found = true;
if (ins instanceof If) if (ins instanceof If)
ic.removeStack(1); ic.removeStack(1);
ic.removeStack(0); ic.removeStack(0);
break; break; // XXX I guess this doesnt matter we're only removing one path
}
if (!found)
{
System.out.println("Unable to locate instruction ctx to remove stack for illegalstateexception " + ins.getType().getName() + " in method " + m.getName() + " class " + m.getMethods().getClassFile().getName());
continue;
} }
// instruction is no longer at 'i' because we've just removed stuff... // instruction is no longer at 'i' because we've just removed stuff...