Uncaught TypeError: Cannot read property 'getState' of null


#1

Error thrown from gantt internal

here is my investigation:

when you call removeAll in destructor, the method will cause a chain of method call and event callbacks, in the first picture, you start a delayed job to render something, but the gantt instance is already destroyed in the second picture and third picture. that’s where the problem is at.

I think you should add a checking here to avoid null gantt instance in delayed job


#2

Hi Kevin,

thanks, you’re completely right, I’ve confirmed the bug.
I hope we’ll get to it very soon and the fix will be available in the next few days