Skip to content

Improve error when FieldIdentifier is invalid in EditContext#65869

Open
Bellambharath wants to merge 2 commits intodotnet:mainfrom
Bellambharath:fix/45096-fieldidentifier-null-message
Open

Improve error when FieldIdentifier is invalid in EditContext#65869
Bellambharath wants to merge 2 commits intodotnet:mainfrom
Bellambharath:fix/45096-fieldidentifier-null-message

Conversation

@Bellambharath
Copy link

Summary:

  1. Validate FieldIdentifier in EditContext and throw a clearer error for invalid input.
  2. Add test for invalid FieldIdentifier passed to NotifyFieldChanged.

Testing:

  1. dotnet test src/Components/Forms/test/Microsoft.AspNetCore.Components.Forms.Tests.csproj

Fixes #45096

@Bellambharath Bellambharath requested a review from a team as a code owner March 19, 2026 08:18
@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label Mar 19, 2026
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 19, 2026
@dotnet-policy-service
Copy link
Contributor

Thanks for your PR, @@Bellambharath. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@Bellambharath
Copy link
Author

CI failed in Helix:
Microsoft.AspNetCore.Mvc.FunctionalTests--net11.0
Looks unrelated to my change (no MVC functional test changes). Could you please re-run CI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blazor Value cannot be null. (Parameter 'obj')

1 participant