ugameplaystatics::getplayercharacter(GetWorld(), 0)->GetName() crashes editor

I think you’re right. That’s probably why getting a pawn while iterating through APawn works and trying to use GetName() on a playercharacter fails and is a null pointer.