This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 4e20679 Fix: make sure AMFBinaryData can work without XML if it is
not used in a JS Application
4e20679 is described below
commit 4e206799347cdd27508ef7d1071db800f5d1be03
Author: greg-dove <[email protected]>
AuthorDate: Sat Dec 7 08:54:54 2019 +1300
Fix: make sure AMFBinaryData can work without XML if it is not used in a JS
Application
---
.../royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as
b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as
index a405a0d..47a07ff 100644
---
a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as
+++
b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/remoting/amf/AMFBinaryData.as
@@ -238,12 +238,17 @@ class SerializationContext extends BinaryData implements
IDataInput, IDataOutpu
return _err;
}
+ /**
+ * @royaleignorecoercion Class
+ */
public function SerializationContext(ownerReference:AMFBinaryData){
owner = ownerReference;
reset();
if (!_xmlChecked) {
_xmlChecked = true;
- _xmlClass = getDefinitionByName('XML') as Class;
+ try{
+ _xmlClass = getDefinitionByName('XML') as Class;
+ } catch(e:Error){}
}
super();
}