File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1947,8 +1947,10 @@ namespace Sass {
1947
1947
Wrapped_Selector_Obj cpy_ws = SASS_MEMORY_COPY (ws);
1948
1948
Selector_List_Obj cpy_ws_sl = SASS_MEMORY_NEW (Selector_List, sl->pstate ());
1949
1949
// remove parent selectors from inner selector
1950
- if (ext_cs->first () && ext_cs->first ()->head ()->length () > 0 ) {
1951
- Wrapped_Selector_Ptr ext_ws = Cast<Wrapped_Selector>(ext_cs->first ()->head ()->first ());
1950
+ Compound_Selector_Obj ext_head = NULL ;
1951
+ if (ext_cs->first ()) ext_head = ext_cs->first ()->head ();
1952
+ if (ext_head && ext_head && ext_head->length () > 0 ) {
1953
+ Wrapped_Selector_Ptr ext_ws = Cast<Wrapped_Selector>(ext_head->first ());
1952
1954
if (ext_ws/* && ext_cs->length() == 1*/ ) {
1953
1955
Selector_List_Obj ws_cs = Cast<Selector_List>(ext_ws->selector ());
1954
1956
Compound_Selector_Obj ws_ss = ws_cs->first ()->head ();
You can’t perform that action at this time.
0 commit comments