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

Thanks. I will try this. BTW, I was using ugameplaystatics::getplayerpawn(GetWorld(), 0). I’m using the flying template and there was no player character. When I tried to use player character with the default flying template, I got a null reference back. I’m also having issue trying to run my build directly from my IDE. I created a question for it. I used to be able to run my game directly from my IDE before. I need to be able to run it from my IDE so I can figure out why my game is crashing.