GridGraph.CountNodes() null test

Hey,
Could we add a null test (and return 0 when true) to GridGraph.CountNodes() to aid checking whether a Grid Update will work please?
i.e. return null == nodes ? 0 : nodes.Length;
Thanks

Hi

That seems very reasonable. A fix for this will be included in the next update.

1 Like