From acd26732263b789d3ce2aa2892516bebd2dfc843 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Fri, 15 May 2015 08:59:58 +0200 Subject: [PATCH] #887 error on export a special swf's P-CODE --- .../flash/abc/avm2/instructions/AVM2Instruction.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java index 1c9b8b53f..1781e0fbe 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java @@ -207,11 +207,12 @@ public class AVM2Instruction implements Cloneable, GraphSourceItem { s.append("\"");*/ break; case AVM2Code.DAT_STRING_INDEX: - if (operands[i] == 0) { + String str; + if (operands[i] == 0 || (str = constants.getString(operands[i])) == null) { s.append(" null"); } else { s.append(" \""); - s.append(Helper.escapeActionScriptString(constants.getString(operands[i]))); + s.append(Helper.escapeActionScriptString(str)); s.append("\""); } break;