WebAssemblyRenderer错误

blazor.webassembly.js:1

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at ZBin.Web.Blazor.Pages.CommunitySet.Index.<BuildRenderTree>b__0_7(RenderTreeBuilder __builder3)
   at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
   at AntDesign.Card.<BuildRenderTree>b__67_0(RenderTreeBuilder __builder2)
   at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
   at Microsoft.AspNetCore.Components.CascadingValue`1[[AntDesign.Card, AntDesign, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].Render(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

以上错误是没有给到属性默认的值

例如,下面这个Data,是未给值

private DepartmentSetService.GetTreeModel Data { get; set; }

应该

private DepartmentSetService.GetTreeModel Data { get; set; } = new ();