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
The following commit(s) were added to refs/heads/develop by this push:
new 48eee886c CSSDocument: add null check for tokenStream
48eee886c is described below
commit 48eee886c17f9da8e227eaad0bbfb256fb3fa0da
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Feb 29 08:00:43 2024 -0800
CSSDocument: add null check for tokenStream
---
.../java/org/apache/royale/compiler/internal/css/CSSDocument.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSDocument.java
b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSDocument.java
index 96d0bebac..978df55b4 100644
---
a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSDocument.java
+++
b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSDocument.java
@@ -178,7 +178,10 @@ public class CSSDocument extends CSSNodeBase implements
ICSSDocument
setColumn(column);
setEndLine(endLine);
setEndColumn(endColumn);
- setSourcePath(tokenStream.getSourceName());
+ if (tokenStream != null)
+ {
+ setSourcePath(tokenStream.getSourceName());
+ }
}
private final ImmutableList<ICSSRule> rules;