Skip to content

Commit

Permalink
Merge pull request #4380 from nscuro/backport-pr-4369
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro authored Nov 14, 2024
2 parents 9b74e77 + c4559e1 commit 86dc0c1
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 86dc0c1

Please sign in to comment.