Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
quinarygio committed Aug 10, 2017
1 parent 6e8328f commit 7da8a1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public List<Contingency> getContingencies(Network network) {
List<Contingency> contingencies = new ArrayList<>();
condingency_data.forEach(cd -> {
List<ContingencyElement> elements = cd.getElementsIds().stream()
.map(id -> getElement(network, tieLines, cd.getId()))
.map(id -> getElement(network, tieLines, id))
.filter(Objects::nonNull)
.collect(Collectors.toList());
if (elements.size() > 0) {
Expand Down

0 comments on commit 7da8a1d

Please sign in to comment.