royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 07/16: handle null
Date Wed, 10 Oct 2018 19:34:19 GMT
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 <aharui@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);
         }
 


Mime
View raw message