File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,13 @@ namespace Sass {
140
140
141
141
// TODO: Add check for namespace stuff
142
142
143
- // append any selectors in childSeq's head
144
- parentSeqClone->mutable_last ()->head ()->concat (base->head ());
145
-
146
- // Set parentSeqClone new tail
147
- parentSeqClone->mutable_last ()->tail ( base->tail () );
143
+ Complex_Selector_Ptr lastComponent = parentSeqClone->mutable_last ();
144
+ if (lastComponent->head () == nullptr ) {
145
+ std::string msg = " Parent \" " + parentSeqClone->to_string () + " \" is incompatible with \" " + base->to_string () + " \" " ;
146
+ error (msg, pstate, traces);
147
+ }
148
+ lastComponent->head ()->concat (base->head ());
149
+ lastComponent->tail (base->tail ());
148
150
149
151
newElements.push_back (parentSeqClone);
150
152
}
You can’t perform that action at this time.
0 commit comments