diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/androhelpers/switch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/androhelpers/switch.c b/plugins/androhelpers/switch.c index a6f6f5b..9e6f306 100644 --- a/plugins/androhelpers/switch.c +++ b/plugins/androhelpers/switch.c @@ -287,6 +287,9 @@ static void look_for_switch_instructions(const GDexMethod *method, GArchInstruct iter != NULL; iter = g_arch_instruction_get_next_iter(instrs, iter, end)) { + if (!G_IS_DALVIK_INSTRUCTION(iter)) + continue; + opcode = g_dalvik_instruction_get_opcode(G_DALVIK_INSTRUCTION(iter)); if (opcode != DOP_PACKED_SWITCH && opcode != DOP_SPARSE_SWITCH) |