Navigating away from a page before progressbar renders causes exception

Using SF Ver. 20.2.0.43

--------------------------------------------------------------------------

                            <SfProgressBar Type="ProgressType.Linear"

                                           Height="20"

                                           Width="85%"

                                           Value=@CommunityServiceValue

                                           Minimum="0"

                                           Maximum="500"

                                           ShowProgressValue="true"

                                           TrackThickness="20"

                                           ProgressThickness="20"

                                           TrackColor="#C1D4DB"

                                           ProgressColor="#3c16e9">

                                           <ProgressBarAnimation Enable="true" Delay="0" Duration="1500"></ProgressBarAnimation>

                            </SfProgressBar>


Exception:

--------------------------------------------------------------------------------

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

   at Syncfusion.Blazor.ProgressBar.SfProgressBar.LabelAnimationData()

   at Syncfusion.Blazor.ProgressBar.SfProgressBar.ProgressAnimation()

   at Syncfusion.Blazor.ProgressBar.SfProgressBar.OnAfterRenderAsync(Boolean firstRender)

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


1 Reply

SB Swetha Babu Syncfusion Team August 22, 2022 09:40 AM UTC

Hi David,


Greetings from Syncfusion.


We have created a simple blazor application using the provided sample code to replicate the reported scenario. But, we are unable to reproduce the same. We have captured a screen capture video while trying to replicate the reported scenario and the same can be downloaded from the below link.


Video link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Progressbar93099901


Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ProgressbarSample790212330


If the reported scenario still persists, please modify the above sample to replicate the reported scenario. It will be helpful for us to analyze further and assist you better.


Regards,

Swetha


Loader.
Up arrow icon