Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,  I think I have just found a bug in the SfGantt control.

I have a page that contains an SfTab control with a Selected event defined.  One of the tabs contains an SfGantt control. (Refer attached solution and video).  

This page has been in production for a number of months, but with an upgrade from 20.2.0.48 to 20.3.48, I started to get an error whenever I selected the tab containing the SfGantt control.  

The error is:  

Error: System.NullReferenceException: Object reference not set to an instance of an object.    at Syncfusion.Blazor.Gantt.Internal.TreeGridPane`1.OnPropertiesChanged(IDictionary`2 PropertyChanges) 

   at System.Threading.Tasks.Task.<>c.b__128_0(Object state)  (see at end for full error text)

I then created a cutdown basic solution (attached) to confirm that I could reproduce the problem.  I don't load any data into the grid on initialization as the user defines filters prior to loading data.

Through a lot of trial and error I identified that if I remove the event from the SfTab, the error does not occur.  I was not able to work out why. The event proc does not need to contain any code whatsoever to cause the error to occur.

I then reverted back to 20.2.0.48 and the page worked as expected.

Can you please investigate this and confirm that you can replicate the issue?


The full text error that I get is as follows:

[2022-10-08T03:25:45.148Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.

   at Syncfusion.Blazor.Gantt.Internal.TreeGridPane`1.OnPropertiesChanged(IDictionary`2 PropertyChanges)

   at System.Threading.Tasks.Task.<>c.b__128_0(Object state)

   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state)

   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.<>c.<.cctor>b__23_0(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

--- End of stack trace from previous location ---

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)