Skip to content

Conversation

jdalton
Copy link
Contributor

@jdalton jdalton commented Aug 14, 2025

Add missing retMap?.pkgList?.length guard. Without this sometimes cdxgen will fail with:

if (retMap?.pkgList.length) {
                         ^

TypeError: Cannot read properties of undefined (reading 'length')
    at createCsharpBom 

@jdalton jdalton requested a review from prabhu as a code owner August 14, 2025 19:44
@jdalton
Copy link
Contributor Author

jdalton commented Aug 14, 2025

Related to #2165.

@prabhu prabhu merged commit a07acb2 into CycloneDX:master Aug 14, 2025
77 of 80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants