Editor crashes after trying to deserialize an actor name and can't reopen project

After assigning an actor name to a FString and trying to deserialize it and log it to the console, my code crashes the unreal editor and then receives the same error trying to open the project again.

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000018

FString name = GetOwner()->GetName();
UE_LOG(LogTemp, Warning, TEXT("%s"), *name);
Anyone know what could be the problem?