Can you elaborate in that? I’m not sure what you mean? I have am using a debug sphere cast to make sure there are no other objects in the spawn point given.
EDIT: I see you were referring to the C++ function. I fixed my problem by offsetting the Spawn location.
Deferred spawning give you the opportunity to set variables before spawn your instance inside the world, for example mark an UPROPERTY with meta expose on spawn, but I think is not your case, indeed, apparently your APawn* is nullptr, just verify that with a simple if(Spawned ) before call anything else, your problem is your spawn, World()->SpawnActor<APawn>(APawn::StaticClass(),FTransform, FActorSpawnParameters), this is the most common way, but you have like seven overrides for SpawnActor template method inside UWorld class
The Spawning is failing periodically because of encroaching geometry. If you want to force the actor to spawn regardless of collision, you need to pass the proper parameters into SpawnActor():