Then that means that either Path or PathFollowing is nullptr. You need to debug to see which one is it. Make sure that Path Following is being properly initialized with:
UPathFollowingComponent* PathFollowing = AIController->GetPathFollowingComponent();