Skip to content

Commit

Permalink
Fix crash in component detection class (fixes #364)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickcr committed Dec 20, 2015
1 parent abfb98b commit 5a41bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/Components.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function componentRule(rule, context) {
break;
}
}
if (!defInScope) {
if (!defInScope || !defInScope.node) {
return null;
}
node = defInScope.node.init || defInScope.node;
Expand Down

0 comments on commit 5a41bed

Please sign in to comment.