This is an automated email from the ASF dual-hosted git repository. erikdebruin pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit bec15f843ec8d6cb3c3d3837dd0e507488fe7da1 Author: Erik de Bruin <[email protected]> AuthorDate: Mon Jan 8 13:04:09 2018 +0100 Add condition to not assert quotes when the method is passed an “empty string” Signed-off-by: Erik de Bruin <[email protected]> --- .../apache/royale/compiler/internal/css/CSSNamespaceDefinition.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSNamespaceDefinition.java b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSNamespaceDefinition.java index 2a2e217..2a2951a 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSNamespaceDefinition.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/css/CSSNamespaceDefinition.java @@ -43,7 +43,9 @@ public class CSSNamespaceDefinition extends CSSNodeBase implements ICSSNamespace { super(tree, tokenStream, CSSModelTreeType.NAMESPACE_DEFINITION); assert uri != null : "@namespace URI can't be null."; - assert CSSStringPropertyValue.isQuoted(uri) : "Do not strip namespace quotes in parser."; + if (!uri.equals("<missing STRING>")) { + assert CSSStringPropertyValue.isQuoted(uri) : "Do not strip namespace quotes in parser."; + } this.prefix = prefix; this.uri = CSSStringPropertyValue.stripQuotes(uri); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
