From a093b2580e34618e56569925c4a0997a22860335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Wed, 21 Oct 2015 06:39:34 +0200 Subject: [PATCH] Issue #1037 isXML call fix --- .../avm2/instructions/construction/ConstructIns.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java index 0aace4e74..8a794d88c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java @@ -81,16 +81,16 @@ public class ConstructIns extends InstructionDefinition { } GraphTargetItem obj = stack.pop(); - FullMultinameAVM2Item xmlMult = null; boolean isXML = false; if (obj instanceof GetPropertyAVM2Item) { GetPropertyAVM2Item gpt = (GetPropertyAVM2Item) obj; if (gpt.object instanceof FindPropertyAVM2Item) { FindPropertyAVM2Item fpt = (FindPropertyAVM2Item) gpt.object; - xmlMult = (FullMultinameAVM2Item) fpt.propertyName; - // todo: honfika: Why call isXML 2 times with the same parameters? - isXML = xmlMult.isXML(localData.constants, localData.localRegNames, localData.fullyQualifiedNames) - && xmlMult.isXML(localData.constants, localData.localRegNames, localData.fullyQualifiedNames); + FullMultinameAVM2Item fptXmlMult = (FullMultinameAVM2Item) fpt.propertyName; + FullMultinameAVM2Item gptXmlMult = (FullMultinameAVM2Item) gpt.propertyName; + + isXML = fptXmlMult.isXML(localData.constants, localData.localRegNames, localData.fullyQualifiedNames) + && gptXmlMult.isXML(localData.constants, localData.localRegNames, localData.fullyQualifiedNames); } } if (obj instanceof GetLexAVM2Item) {