DrawLine path by custom code

I want to drawLine the optimal path from the origin to the destination according to the link below
But it does not work and writes the path was found with 0 points!


After finding the path, I want the robot to move towards the destination with the push of a button


This page might help you Error messages - A* Pathfinding Project