Null reference exception calling UpdateGraphs

I’m calling UpdateGraphs on my grid graph, passing in a Bounds:

`worldGraph.active.UpdateGraphs(bounds);
`

It seems to work fine (the graph updates properly), but I’m getting a null reference exception:

Here’s AstarPath line1538:

if (node.Walkable && node.Area == 0) {

What might be causing this exception?

Thank you.

Hi

This could possibly be caused by a race condition I fixed recently (that took several hours to track down, one of the nastier bugs I have encountered).
Try to download the latest beta version and see if that fixes it.

That did it. Thanks for the suggestion, and the time it took to do the fix.