Skip to content

Commit

Permalink
Merge pull request #4369 from nscuro/issue-4351
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro authored Nov 12, 2024
2 parents 0737b1d + 3407078 commit 3c265ed
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,10 @@ public List<Finding> getFindings(Project project, boolean includeSuppressed) {
.forEach(metaComponent -> {
final var search = new RepositoryMetaComponentSearch(metaComponent.getRepositoryType(), metaComponent.getNamespace(), metaComponent.getName());
final List<Finding> affectedFindings = findingsByMetaComponentSearch.get(search);
for (final Finding finding : affectedFindings) {
finding.getComponent().put("latestVersion", metaComponent.getLatestVersion());
if (affectedFindings != null) {
for (final Finding finding : affectedFindings) {
finding.getComponent().put("latestVersion", metaComponent.getLatestVersion());
}
}
});

Expand Down

0 comments on commit 3c265ed

Please sign in to comment.