Support Forum

Destination setter error (null reference)

Hi!
I’m trying to teleport an agent in the very first frame it is initialized (reset to a checkpoint) and there seems to be an error in the AIPath destination setter.

The destination setter checks “reachedDestination” which checks path interpolator’s “endPoint” and as the path is null at this point and there is no null check (or your interpolator’s isValid) it throws an error.

1 Like

Thanks! Good catch! I’ll fix this.