intermittent console error when exiting a page where spinner is active

Getting the following console error when quickly changing between pages where spinner is active if the ListView data source is null and new page selected before async task to get data has been completed

[2020-12-03T14:15:48.647Z] Error: System.AggregateException: Exceptions were encountered while disposing components. (Object reference not set to an instance of an object.) (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.Spinner.Internal.Bootstrap.ComponentDispose()
   at Microsoft.AspNetCore.Components.OwningComponentBase.System.IDisposable.Dispose()
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.TryDisposeInBatch(RenderBatchBuilder batchBuilder, Exception& exception)
   --- End of inner exception stack trace ---
 ---> (Inner Exception #1) System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.Blazor.Spinner.Internal.Bootstrap.ComponentDispose()
   at Microsoft.AspNetCore.Components.OwningComponentBase.System.IDisposable.Dispose()
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.TryDisposeInBatch(RenderBatchBuilder batchBuilder, Exception& exception)<---

blazor.server.js:19 [2020-12-03T14:30:55.667Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.Blazor.Spinner.Internal.Bootstrap.ComponentDispose()
   at Microsoft.AspNetCore.Components.OwningComponentBase.System.IDisposable.Dispose()
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.TryDisposeInBatch(RenderBatchBuilder batchBuilder, Exception& exception)
e.log @ blazor.server.js:19
C @ blazor.server.js:8
(anonymous) @ blazor.server.js:8
(anonymous) @ blazor.server.js:1
e.invokeClientMethod @ blazor.server.js:1
e.processIncomingData @ blazor.server.js:1
connection.onreceive @ blazor.server.js:1
i.onmessage @ blazor.server.js:1
blazor.server.js:1 [2020-12-03T14:30:55.670Z] Informatio

4 Replies

RK Revanth Krishnan Syncfusion Team December 4, 2020 03:30 PM UTC

Hi Adrew, 
 
 
Greetings from Syncfusion support. 
 
 
We currently validating your query with high priority, we will update you with further details on or before 8th Dec. 
We appreciate your patience until then. 
  
Regards,  
Revanth 



RK Revanth Krishnan Syncfusion Team December 4, 2020 05:05 PM UTC

Hi Adrew, 
 
 
Greetings from Syncfusion support. 
 
 
We validated your query “Console error when exiting a page where spinner is active” 
 
We have tried the following to reproduce the issue, 
  • Rendering the spinner outside the list view and initially spinner as visible.
  • Rendering the spinner inside the list view and initially spinner as visible.
  • Rendering the spinner inside the list view and showing the spinner on `OnInitialized` method with no list data.
But we were not able to reproduce the issue from our end. 
 
We have prepared a sample for your reference,  
  
Can you please share with us the following details, 
  • The Spinner package version you are using?
  • Are you able to reproduce the reported issues in the above-shared sample? or please modify the samples with the issue reproducing scenario.
The above details will be helpful for us to further validate the issue and assist you at the earliest. 
 
Regards,  
Revanth 



AN Andrew December 6, 2020 05:24 PM UTC

Revanth

Thanks for your sample. I can see where the problem occurs. It was because I was including the Spinner in an If (datasource = null) <SfSpinner/> and not including it as a child component of the SfList. I have now moved all my spinners inside as child components of the SfLists and all appears to be resolved.

Andrew


IS Indrajith Srinivasan Syncfusion Team December 7, 2020 07:40 AM UTC

Hi Andrew, 
 
Thanks for the update, 
 
We are glad that the reported issue is resolved. Please let us know, if you need any further assistance. 
 
Regards, 
Indrajith 


Loader.
Up arrow icon