Skip to content

Fix issue where extention would crash when NugetDepsTree.generate return no projects #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 23, 2025

Conversation

dennisblokland
Copy link
Contributor

Prevent undefined project destructuring by adding a check for an empty projects array in ProjectFilesProvider. This situation can occur when the .csproj file is present on disk, but the parser (i.e., NugetDepsTree.generate) doesn't find any valid project information within it. For example, if the project file is malformed or uses an unsupported structure.

@badsyntax
Copy link
Owner

Thanks!

@badsyntax badsyntax merged commit f53d668 into badsyntax:master Feb 23, 2025
5 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