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 697621c refactor from brackets notation to dot notation using null instead undefined 697621c is described below commit 697621ca89421859ea23c60c71383326c1d30efd Author: Carlos Rovira <carlosrov...@apache.org> AuthorDate: Wed Mar 20 19:34:57 2019 +0100 refactor from brackets notation to dot notation using null instead undefined --- .../MXRoyale/src/main/royale/mx/messaging/channels/AMFChannel.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/channels/AMFChannel.as b/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/channels/AMFChannel.as index 789a715..1e08d24 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/channels/AMFChannel.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/channels/AMFChannel.as @@ -542,11 +542,11 @@ public class AMFChannel extends NetConnectionChannel _log.debug("'{0}' fault handler called. {1}", id, msg.toString()); // Set the server assigned RoyaleClient Id. - if (RoyaleClient.getInstance().id == null && msg["headers"] != undefined && msg.headers[AbstractMessage.FLEX_CLIENT_ID_HEADER] != null) + if (RoyaleClient.getInstance().id == null && msg.headers != null && msg.headers[AbstractMessage.FLEX_CLIENT_ID_HEADER] != null) RoyaleClient.getInstance().id = msg.headers[AbstractMessage.FLEX_CLIENT_ID_HEADER]; // Process the features advertised by the server endpoint. - if (msg["headers"] != undefined && msg.headers[CommandMessage.MESSAGING_VERSION] != null) + if (msg.headers != null && msg.headers[CommandMessage.MESSAGING_VERSION] != null) { var serverVersion:Number = msg.headers[CommandMessage.MESSAGING_VERSION] as Number; handleServerMessagingVersion(serverVersion);