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;