Skip to content

Commit

Permalink
[GR-9068] Do not provide null SourceSection to LoadSourceSectionListe…
Browse files Browse the repository at this point in the history
…ner to keep compatibility.
  • Loading branch information
entlicher committed Mar 29, 2018
1 parent 6ca623c commit ab4168e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,10 @@ private static void notifySourceExecutedBinding(EventBinding.Source<?> binding,
}

static void notifySourceSectionLoaded(EventBinding.Source<?> binding, Node node, SourceSection section) {
if (section == null) {
// Do not report null source sections to keep compatibility with the past behavior.
return;
}
LoadSourceSectionListener listener = (LoadSourceSectionListener) binding.getElement();
try {
listener.onLoad(new LoadSourceSectionEvent(section, node));
Expand Down

0 comments on commit ab4168e

Please sign in to comment.