You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2019/03/13 07:46:33 UTC

[royale-asjs] branch develop updated: Avoid occasional null reference error in applyStyles

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

gregdove 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 c55e9db  Avoid occasional null reference error in applyStyles
c55e9db is described below

commit c55e9db80dc68ac1b2935231259926f82d25c174
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Mar 13 19:11:26 2019 +1300

    Avoid occasional null reference error in applyStyles
---
 .../Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as
index 471ff31..5143c4e 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as
@@ -866,7 +866,7 @@ package org.apache.royale.core
             var skipStyles:Object = this.skipStyles;
             var numericStyles:Object = this.numericStyles;
             var listObj:Object = styles;
-            if (styles.styleList)
+            if (styles && styles.styleList)
                 listObj = styles.styleList;
             for (var p:String in listObj) 
             {