TreeView error

Hi,

Following errors occur when TreeView DataSource is set:

In the attached sample, the error below occurs when clicking on "Group 1":


Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: 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 Syncfusion.Blazor.Navigations.SfTreeView`1.OnAfterScriptRendered()

   at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)

   at Syncfusion.Blazor.Navigations.SfTreeView`1.OnAfterRenderAsync(Boolean firstRender)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost: Error: Unhandled exception in circuit '2WS-petyOgWaZrX1Ltn08wI5JSOD1Pggg658jLj8eME'.


System.NullReferenceException: Object reference not set to an instance of an object.

   at Syncfusion.Blazor.Navigations.SfTreeView`1.OnAfterScriptRendered()

   at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)

   at Syncfusion.Blazor.Navigations.SfTreeView`1.OnAfterRenderAsync(Boolean firstRender)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: 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 Syncfusion.Blazor.Navigations.Internal.ListGeneration`1.OnAfterRenderAsync(Boolean firstRender)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost: Error: Unhandled exception in circuit '2WS-petyOgWaZrX1Ltn08wI5JSOD1Pggg658jLj8eME'.


System.NullReferenceException: Object reference not set to an instance of an object.

   at Syncfusion.Blazor.Navigations.Internal.ListGeneration`1.OnAfterRenderAsync(Boolean firstRender)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)




Attachment: Demo_da9f624c.zip

2 Replies 1 reply marked as answer

KR Keerthana Rajendran Syncfusion Team May 9, 2022 06:33 AM UTC

Hi MiVision,


Yes, we can replicate the issue with the attached sample but still, we need some additional time to identify the root cause. We will validate and get back to you with further details on May 12, 2022.


Regards,

Keerthana R.



SS Sivakumar ShunmugaSundaram Syncfusion Team May 10, 2022 04:56 PM UTC

Hi MiVision,


Thanks for your patience.


We have validated your reported issue in the Blazor TreeView component, and the reported issue doesn’t occur in our latest package version of 20.1.52. We have attached the sample for your reference.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Demo1990600795.zip


Please check the attached sample and get back to us if you need any further assistance.


Regards,

Sivakumar S


Marked as answer
Loader.
Up arrow icon