Skip to content

Commit 050c61c

Browse files
committed
Add check before access in skip_empty_reference
Fixes #1569
1 parent c8dc995 commit 050c61c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ast.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2133,9 +2133,10 @@ namespace Sass {
21332133
if ((!head_ || !head_->length() || head_->is_empty_reference()) &&
21342134
combinator() == Combinator::ANCESTOR_OF)
21352135
{
2136+
if (!tail_) return 0;
21362137
tail_->has_line_feed_ = this->has_line_feed_;
21372138
// tail_->has_line_break_ = this->has_line_break_;
2138-
return tail_ ? tail_->skip_empty_reference() : 0;
2139+
return tail_->skip_empty_reference();
21392140
}
21402141
return this;
21412142
}

0 commit comments

Comments
 (0)