dotnet/aspnetcore

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

オープン

#45,096 opened on 2022/11/14

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)C# (10,653 件のフォーク)batch import
Pillar: Technical Debtarea-blazorbugcopilot-candidatefeature-blazor-builtin-componentsgood first issuehelp wanted

Repository metrics

Stars
 (37,933 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド