Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -242,7 +242,13 @@ public SourceSection getSourceSection() {
if (sourceStartLine == 0) {
return null;
} else {
return getRubySourceSection().toSourceSection(getRootNode().getSourceSection().getSource());
final RootNode rootNode = getRootNode();

if (rootNode == null) {
return null;
}

return getRubySourceSection().toSourceSection(rootNode.getSourceSection().getSource());
}
}

0 comments on commit e1a2252

Please sign in to comment.