Skip to content

Commit

Permalink
Fix null pointer access in nesting check
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Mar 1, 2018
1 parent 09e41e6 commit 7f06d83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/check_nesting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ namespace Sass {
At_Root_Block_Ptr ar = Cast<At_Root_Block>(parent);
Block_Ptr ret = ar->block();

if (!ret) return NULL;

for (auto n : ret->elements()) {
n->perform(this);
}
Expand Down

0 comments on commit 7f06d83

Please sign in to comment.