diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AVM2DeobfuscatorSimple.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AVM2DeobfuscatorSimple.java index 63fae0ccc..98ad011cd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AVM2DeobfuscatorSimple.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AVM2DeobfuscatorSimple.java @@ -296,6 +296,10 @@ public class AVM2DeobfuscatorSimple implements SWFDecompilerListener { stack.pop(); AVM2Instruction pushins = makePush(abc.constants, staticRegs.get(regId)); + if (pushins == null) { + return; + } + code.replaceInstruction(idx, pushins, body); stack.push(staticRegs.get(regId)); ins = pushins;