You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2019/01/29 12:30:10 UTC

[royale-asjs] branch develop updated: Temporary workaround

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

harbs 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 de6f0ac  Temporary workaround
de6f0ac is described below

commit de6f0acd8d9e875d23f8fae674fb305f675a0f53
Author: Harbs <ha...@in-tools.com>
AuthorDate: Tue Jan 29 14:29:49 2019 +0200

    Temporary workaround
---
 .../Language/src/main/royale/org/apache/royale/utils/Language.as      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
index 2591313..9887ff7 100644
--- a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
+++ b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
@@ -112,7 +112,9 @@ package org.apache.royale.utils
 		 */
 		static public function string(value:*):String
 		{
-			return value == null ? null : value.toString() as String;
+			if(value == null)
+				return null;
+			return value.toString() as String;
 		}
 
 		/**