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

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 5f1b5f558cdc29cb2f3d9e0810ddb832fb555a13
Author: Josh Tynjala <[email protected]>
AuthorDate: Tue Jul 9 14:17:19 2019 -0700

    CSSProperty: fixed cast exception in toString()
---
 .../main/java/org/apache/royale/compiler/internal/css/CSSProperty.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSProperty.java
 
b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSProperty.java
index 9b3ddf1..0f4c0a2 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSProperty.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSProperty.java
@@ -57,7 +57,7 @@ public class CSSProperty extends CSSNodeBase implements 
ICSSProperty
     @Override
     public String toString()
     {
-        if (rawName.equalsIgnoreCase("border"))
+        if (rawName.equalsIgnoreCase("border") && value instanceof 
CSSArrayPropertyValue)
         {
             CSSArrayPropertyValue borderValues = (CSSArrayPropertyValue)value;
             return String.format("%s: %s;", rawName, Joiner.on(" 
").join(borderValues.getElements()));

Reply via email to