Skip to content

Commit

Permalink
gracefully handle missing RIs
Browse files Browse the repository at this point in the history
verinice-veo#3309
  • Loading branch information
jochenkemnade committed Nov 26, 2024
1 parent 677dbf8 commit 1588da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/templates/libs/dp-risk.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ ${riskValuesForCategory.riskTreatmentExplanation}
</thead>
<tbody>
<#list risk.mitigation.parts as tom>
<#assign ri=getRI(riskAffected, tom)>
<#assign mitigationStatus=getImplementationStatus(ri)!/>
<#assign ri=getRI(riskAffected, tom)!>
<#assign mitigationStatus=(getImplementationStatus(ri))!/>
<tr>
<td>${tom.designator} ${tom.name}</td>
<#if mitigationStatus?has_content>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/vvt.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ ${bundle.process_opinionDPO_comment}
<#list tomsinsection as t>
<#assign statusTdStyle="">
<#assign tom_status_output="">
<#assign ri=dpRisk.getRI(process, t)>
<#assign tom_status=dpRisk.getImplementationStatus(ri)! />
<#assign ri=dpRisk.getRI(process, t)!>
<#assign tom_status=(dpRisk.getImplementationStatus(ri))! />

<#if tom_status?has_content>
<#assign backgroundColor=tom_status.color />
Expand Down

0 comments on commit 1588da4

Please sign in to comment.