This is an automated email from the ASF dual-hosted git repository. carlosrovira 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 45caa66 Fix RemoteObject deserialization when objects in server has more properties than in royale client (#236) 45caa66 is described below commit 45caa66d6cc8fba9c267293dd8ab33e362e04065 Author: Carlos Rovira <carlosrov...@apache.org> AuthorDate: Tue May 15 16:53:27 2018 +0200 Fix RemoteObject deserialization when objects in server has more properties than in royale client (#236) --- .../royale/org/apache/royale/reflection/getClassByAlias.as | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/getClassByAlias.as b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/getClassByAlias.as index 7ba6cc5..c430afd 100644 --- a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/getClassByAlias.as +++ b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/getClassByAlias.as @@ -36,8 +36,14 @@ COMPILE::SWF { COMPILE::JS { if (aliasName == null) throw new TypeError("Parameter aliasName must be non-null."); if (aliasName.length==0) throw new TypeError("Parameter aliasName must be non-empty string."); - var klazz:Class = TypeDefinition.getClassByAlias(aliasName); - if (!klazz) throw new ReferenceError("Class "+aliasName+" could not be found."); + try + { + var klazz:Class = TypeDefinition.getClassByAlias(aliasName); + } + catch (e) + { + throw new ReferenceError("Class "+aliasName+" could not be found."); + } return klazz; } } -- To stop receiving notification emails like this one, please contact carlosrov...@apache.org.