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/08/13 19:02:40 UTC
[royale-asjs] 01/09: coercions return null if input is null
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit f5ec3ad6efcf760161e39c310ee32e3096a9d087
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Aug 13 11:39:01 2018 -0700
coercions return null if input is null
---
.../Language/src/main/royale/org/apache/royale/utils/Language.as | 2 +-
1 file changed, 1 insertion(+), 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 2ba7f5a..2a3a8ce 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
@@ -74,7 +74,7 @@ package org.apache.royale.utils
itIs = Language.is(leftOperand, rightOperand);
- if (!itIs && coercion)
+ if (!itIs && coercion && leftOperand)
{
message = 'Type Coercion failed';