Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 71267b9

Browse files
author
Aaron Leung
committed
Merge branch 'master' into url-scanning
2 parents beccbaa + 92d1ec4 commit 71267b9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eval_apply.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace Sass {
5757

5858
case Node::ruleset: {
5959
// if the selector contains interpolants, eval it and re-parse
60-
if (expr[0].type() == Node::selector_schema) {
60+
if (!expr[0].is_null() && expr[0].type() == Node::selector_schema) {
6161
Node schema(expr[0]);
6262
string expansion;
6363
for (size_t i = 0, S = schema.size(); i < S; ++i) {
@@ -987,7 +987,7 @@ namespace Sass {
987987
// combine the various kinds of selectors.
988988
Node expand_selector(Node sel, Node pre, Node_Factory& new_Node)
989989
{
990-
if (pre.is_null()) return sel;
990+
if (pre.is_null() || sel.is_null()) return sel;
991991

992992
if (sel.has_backref()) {
993993
if ((pre.type() == Node::selector_group) && (sel.type() == Node::selector_group)) {

node.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ namespace Sass {
349349
{
350350
children.push_back(n);
351351
has_children = true;
352+
if (n.is_null()) return;
352353
switch (n.type())
353354
{
354355
case Node::comment:

0 commit comments

Comments
 (0)