Skip to content

Fix darc update-dependencies NRE#5347

Merged
dkurepa merged 1 commit into
dotnet:mainfrom
dkurepa:dkurepa/FixDarcUpdateDependenciesNRE
Oct 8, 2025
Merged

Fix darc update-dependencies NRE#5347
dkurepa merged 1 commit into
dotnet:mainfrom
dkurepa:dkurepa/FixDarcUpdateDependenciesNRE

Conversation

@dkurepa

@dkurepa dkurepa commented Oct 8, 2025

Copy link
Copy Markdown
Member

#5221 fixes a bug introduced in #5340 where there's an NRE if there are no excluded assets

Copilot AI review requested due to automatic review settings October 8, 2025 09:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes a null reference exception (NRE) in the DARC update-dependencies operation when no excluded assets are specified. The issue was introduced in a previous PR where the code didn't handle the case where ExcludedAssets is null.

Key Changes

  • Added null coalescing operator to provide a default AssetMatcher instance when ExcludedAssets is null

@dkurepa dkurepa enabled auto-merge (squash) October 8, 2025 09:47
@dkurepa dkurepa merged commit 79cefce into dotnet:main Oct 8, 2025
7 of 9 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.

3 participants