Skip to content

Backport: Avoid NPE when computing Trivy pkgType (#5982)#5987

Merged
nscuro merged 1 commit into
DependencyTrack:4.14.xfrom
stohrendorf:trivy-npe-backport
Apr 2, 2026
Merged

Backport: Avoid NPE when computing Trivy pkgType (#5982)#5987
nscuro merged 1 commit into
DependencyTrack:4.14.xfrom
stohrendorf:trivy-npe-backport

Conversation

@stohrendorf
Copy link
Copy Markdown
Contributor

(cherry picked from commit d3ff4c1)

Description

Backports #5982

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective

Signed-off-by: Steffen Ohrendorf <[email protected]>
(cherry picked from commit d3ff4c1)
@owasp-dt-bot
Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 2, 2026

Not up to standards ⛔

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity . 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🔴 Coverage 0.00% diff coverage · 0.00% coverage variation

Metric Results
Coverage variation 0.00% coverage variation (-1.00%)
Diff coverage 0.00% diff coverage (70.00%)

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (6171d91) 24773 20111 81.18%
Head commit (c115f68) 24774 (+1) 20111 (+0) 81.18% (0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5987) 6 0 0.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

TIP This summary will be updated as you push new changes. Give us feedback

@nscuro nscuro added defect Something isn't working integration/trivy Related to the Trivy integration labels Apr 2, 2026
@nscuro nscuro added this to the 4.14.1 milestone Apr 2, 2026
Copy link
Copy Markdown
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, much appreciated!

@nscuro nscuro merged commit e34de13 into DependencyTrack:4.14.x Apr 2, 2026
7 of 8 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

defect Something isn't working integration/trivy Related to the Trivy integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants