dotnet/aspnetcore

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

Open

#45 096 ouverte le 14 nov. 2022

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)C# (10 653 forks)batch import
Pillar: Technical Debtarea-blazorbugcopilot-candidatefeature-blazor-builtin-componentsgood first issuehelp wanted

Métriques du dépôt

Stars
 (37 933 stars)
Métriques de merge PR
 (Merge moyen 16j 9h) (258 PRs mergées en 30 j)

Description

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

Guide contributeur