Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 3, 2025

Backport of #121249 to release/10.0

/cc @tarekgh

Customer Impact

  • Customer reported
  • Found internally

Applications that use an empty array configuration such as "IEnumerableProperty": [] and bind it to an uninitialized property of type IEnumerable<T>, IReadOnlyList<T>, or IReadOnlyCollection<T> will encounter an ArgumentNullException. This exception can cause the application to crash if it isn’t properly handled. The issue is reported by the issue #121249

Regression

  • Yes
  • No

The regression was introduced in .NET 10 Preview 7 through PR #116677.

Testing

Tested all potential failure cases manually and ensured no exceptions are thrown. Also added a regression test for the previously failing scenario.

Risk

Low, as the fix was scoped to only affect the specific failing scenario, when an empty list configuration is bound to a property of the specified type.

@tarekgh tarekgh self-assigned this Nov 3, 2025
@tarekgh tarekgh added Servicing-consider Issue for next servicing release review area-Extensions-Configuration labels Nov 3, 2025
@tarekgh tarekgh added this to the 10.0.x milestone Nov 3, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

@tarekgh
Copy link
Member

tarekgh commented Nov 3, 2025

CC @jeffhandley @ericstj

@tarekgh tarekgh added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 4, 2025
@tarekgh
Copy link
Member

tarekgh commented Nov 4, 2025

Approved through the email.

@tarekgh
Copy link
Member

tarekgh commented Nov 4, 2025

/ba-g the failures are the known timeout issues which is happening across PRs.

@tarekgh tarekgh merged commit 765b715 into release/10.0 Nov 5, 2025
82 of 100 checks passed
@jkotas jkotas deleted the backport/pr-121249-to-release/10.0 branch November 12, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants