UE Crash on third person project when getting GetActorEyesViewPoint

Im fairly new to UE and wanted to tinker around in the third person c++ project, ive set a first/third person toggle and am now trying to shoot out a ray from the characters head and make it pivot with the camera. Once i run this line here in the character.cpp file, UE crashes. Im wondering if its due to it being the third person project and maybe doesnt have this setup? any insight would be great in helping me learn and figure this out

GetOwner()->GetActorEyesViewPoint(
	OUT PlayerViewPointLocation,
	OUT PlayerViewPointRotation
);

Solved, switched it around to this which i had from a previous project. My brain misread it initially.
GetWorld()->GetFirstPlayerController()->GetPlayerViewPoint(
OUT PlayerViewPointLocation,
OUT PlayerViewPointRotation
);