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 2765b634a291125174a567d27aea5b59f2fedefd
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon May 12 08:27:35 2025 -0700

    CSSUnresolvedClassReferenceProblem: fix exception by using isQuoted() 
before calling stripQuotes()
    
    Copied similar code in CSSSemanticAnalyzer
---
 .../compiler/problems/CSSUnresolvedClassReferenceProblem.java | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/compiler/src/main/java/org/apache/royale/compiler/problems/CSSUnresolvedClassReferenceProblem.java
 
b/compiler/src/main/java/org/apache/royale/compiler/problems/CSSUnresolvedClassReferenceProblem.java
index b04bf7a7d..324597c4d 100644
--- 
a/compiler/src/main/java/org/apache/royale/compiler/problems/CSSUnresolvedClassReferenceProblem.java
+++ 
b/compiler/src/main/java/org/apache/royale/compiler/problems/CSSUnresolvedClassReferenceProblem.java
@@ -20,6 +20,7 @@
 package org.apache.royale.compiler.problems;
 
 import org.apache.royale.compiler.internal.css.CSSFunctionCallPropertyValue;
+import org.apache.royale.compiler.internal.css.CSSStringPropertyValue;
 
 import static 
org.apache.royale.compiler.internal.css.CSSStringPropertyValue.stripQuotes;
 
@@ -38,7 +39,15 @@ public final class CSSUnresolvedClassReferenceProblem 
extends CSSProblem
     public CSSUnresolvedClassReferenceProblem(CSSFunctionCallPropertyValue 
classReference)
     {
         super(classReference);
-        qname = stripQuotes(classReference.rawArguments);
+        
+        if (CSSStringPropertyValue.isQuoted(classReference.rawArguments))
+        {
+            qname = stripQuotes(classReference.rawArguments);
+        }
+        else
+        {
+            qname = classReference.rawArguments;
+        }
     }
 
     public final String qname;

Reply via email to