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 b0f7d05271 Don't error on null styleTypes
b0f7d05271 is described below

commit b0f7d052719bf5ac8f62ab36c29c8815c76d4bc7
Author: Harbs <[email protected]>
AuthorDate: Mon May 18 14:01:10 2026 +0300

    Don't error on null styleTypes
---
 .../Style/src/main/royale/org/apache/royale/style/StyleUIBase.as        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/StyleUIBase.as
 
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/StyleUIBase.as
index d0d8ec5931..5f83c72769 100644
--- 
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/StyleUIBase.as
+++ 
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/StyleUIBase.as
@@ -245,7 +245,7 @@ package org.apache.royale.style
                        COMPILE::JS
                        {
                                var styleType:String = style.styleType;
-                               if(styleTypes.has(styleType))
+                               if(styleTypes && styleTypes.has(styleType))
                                {
                                        return styleTypes.get(styleType);
                                }

Reply via email to