Skip to content

Commit

Permalink
make sure that the safeguards are initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenkemnade committed Mar 19, 2020
1 parent a3bdcad commit 5b7e745
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.Optional;
import java.util.stream.Collectors;

import sernet.gs.service.Retriever;
import sernet.verinice.model.bp.elements.BpRequirement;
import sernet.verinice.model.bp.elements.Safeguard;
import sernet.verinice.model.common.CnALink;
Expand Down Expand Up @@ -62,7 +63,8 @@ public static boolean setImplementationStatusToRequirement(CnATreeElement requir
private static List<CnATreeElement> getSafeguardsFromRequirement(CnATreeElement requirement) {
return requirement.getLinksDown().stream()
.filter(DeductionImplementationUtil::isRelevantLinkForImplementationStateDeduction)
.map(CnALink::getDependency).collect(Collectors.toList());
.map(CnALink::getDependency).map(Retriever::checkRetrieveElement)
.collect(Collectors.toList());
}

/**
Expand Down

0 comments on commit 5b7e745

Please sign in to comment.