Editor crashes on trace

I trying to trace from enemy to player

//Tracing:
    Player = UGameplayStatics::GetPlayerCharacter(GetWorld(), 0);
	FVector Start = GetTransform().GetLocation();
	FVector End = Player->GetTransform().GetLocation();

	FHitResult HitOut(ForceInit);
	FCollisionQueryParams TraceParams(FName(TEXT("VictoreCore Trace")), true);
	TraceParams.bTraceComplex = true;
	//TraceParams.bTraceAsyncScene = true;
	TraceParams.bReturnPhysicalMaterial = false;

	GetWorld()->LineTraceSingle(
		HitOut,		//result
		Start,	//start
		End, //end
		ECC_Pawn, //collision channel
		TraceParams
		);


	if (HitOut.Actor == Player)
	{
		FoundPlayer = true;
	}

Editor closes with an “unhandled exception” message when i hit play. If i remove trace, then evrything ok. I think problem in FVector End = Player->GetTransform().GetLocation(); But i dont know how to get player position in FVector.

Thx.

Try this.

if(HitResult.GetActor())
{
  if(HitResult.GetActor()->IsA(PlayerClassName::StaticClass())
 {
    PlayerClassName* stuff= Cast<PlayerClassName>(result);

   if(stuff)
  {
   stuff->InvokeFunc();
  }

 }

}

It dont work(
Still same error

Fatal error!

Unhandled Exception:
EXCEPTION_ACCESS_VIOLATION reading
address 0x00000180

But you give me idea. And i solved it. The problem was that I was trying to get player location before it was spawned.