Support Forum

Getting Null Reference In Build

(Filename: Line: 141)

Caught exception while deserializing data.
System.NullReferenceException: Object reference not set to an instance of an object
at Pathfinding.GridNode.GetConnections (System.Action`1[T] action) [0x0000b] in <82167d4a526f44e6a6a9c97d1717a0b2>:0
at Pathfinding.HierarchicalGraph.FindHierarchicalNodeChildren (System.Int32 hierarchicalNode, Pathfinding.GraphNode startNode) [0x0004c] in <82167d4a526f44e6a6a9c97d1717a0b2>:0
at Pathfinding.HierarchicalGraph.RecalculateIfNecessary () [0x000d7] in <82167d4a526f44e6a6a9c97d1717a0b2>:0
at Pathfinding.AstarData.DeserializeGraphsPartAdditive (Pathfinding.Serialization.AstarSerializer sr) [0x0014c] in <82167d4a526f44e6a6a9c97d1717a0b2>:0
at Pathfinding.AstarData.DeserializeGraphsAdditive (System.Byte[] bytes) [0x0001b] in <82167d4a526f44e6a6a9c97d1717a0b2>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

I getting this null reference in build on certain pc, i didnt manage to reproduce it on my pc in build and editor, may i know how should i fix it ?


Can you reliably replicate this in a standalone build? And it never happens in the editor?
Which version of the package are you using?