You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/10/10 19:34:19 UTC

[royale-asjs] 07/16: handle null

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 4ab33dddeacf86fad93b6940796a4d0193a3e870
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Oct 9 11:17:05 2018 -0700

    handle null
---
 .../MXRoyale/src/main/royale/mx/messaging/messages/AbstractMessage.as  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/messages/AbstractMessage.as b/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/messages/AbstractMessage.as
index 5530f16..d7f536c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/messages/AbstractMessage.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/messaging/messages/AbstractMessage.as
@@ -694,7 +694,8 @@ public class AbstractMessage implements IMessage
         {
             var name:String = String(propertyNames[i]);
             //var value:String = RPCObjectUtil.toString(attributes[name]);
-            var value:String = attributes[name].toString();
+            var attrValue:Object = attributes[name];
+            var value:String = attrValue == null ? "null" : attrValue.toString();
             result += RPCStringUtil.substitute("\n  {0}={1}", name, value);
         }