dotnet/aspnetcore

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

Open

#45,096 创建于 2022年11月14日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)C# (10,653 fork)batch import
Pillar: Technical Debtarea-blazorbugcopilot-candidatefeature-blazor-builtin-componentsgood first issuehelp wanted

仓库指标

Star
 (37,933 star)
PR 合并指标
 (平均合并 16天 9小时) (30 天内合并 258 个 PR)

描述

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

贡献者指南