Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Fix NRE in SwitchMangler
Browse files Browse the repository at this point in the history
  • Loading branch information
yck1509 committed Oct 13, 2015
1 parent 2396d4f commit 873206e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Confuser.Protections/ControlFlow/SwitchMangler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ LinkedList<Instruction[]> SpiltStatements(InstrBlock block, Trace trace, CFConte
if (trace.AfterStack[instr.Offset] != 0) {
if (instr.Operand is Instruction)
requiredInstr.Add((Instruction)instr.Operand);
else {
else if (instr.Operand is Instruction[]) {
foreach (var target in (Instruction[])instr.Operand)
requiredInstr.Add(target);
shouldSpilt = false;
Expand Down

0 comments on commit 873206e

Please sign in to comment.