Skip to content

Commit

Permalink
fix: attempt to fix NPE
Browse files Browse the repository at this point in the history
hopefully resolves #6742
  • Loading branch information
jeremylong committed Jul 3, 2024
1 parent 02e0440 commit 380675b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private boolean hasMultipleVendorProductConfigurations(DefCveItem cve) {
final List<CpeMatch> cpeEntries = cve.getCve().getConfigurations().stream()
.map(Config::getNodes)
.flatMap(List::stream)
.filter(cpe -> cpe.getCpeMatch() != null)
.map(Node::getCpeMatch)
.flatMap(List::stream)
.filter(match -> match.getCriteria() != null)
Expand Down

0 comments on commit 380675b

Please sign in to comment.