dotnet/aspnetcore

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

Open

#45.096 aperta il 14 nov 2022

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)C# (10.653 fork)batch import
Pillar: Technical Debtarea-blazorbugcopilot-candidatefeature-blazor-builtin-componentsgood first issuehelp wanted

Metriche repository

Star
 (37.933 star)
Metriche merge PR
 (Merge medio 16g 9h) (258 PR mergiate in 30 g)

Descrizione

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

when calling EditContext.NotifyFieldChanged(FieldIdentifier); with a FieldIdentifier that has .FieldName == null (because the custom component is not declared using @bind ) we'll get this not very useful error message:

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

Expected Behavior

a better error message

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6

Anything else?

No response

Guida contributor