Support Forum

Destination setter error (null reference)

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.

I don’t think this has been fixed. Using 4.3.47, is this the latest version?

1 Like

Thanks for reminding me. I had completely forgotten about it.
I’ve fixed it in my dev version now.