#887 error on export a special swf's P-CODE

This commit is contained in:
honfika@gmail.com
2015-05-15 08:59:58 +02:00
parent abec5214bb
commit acd2673226

View File

@@ -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;