How to get actors when game init?

It seems that InitGame is called really early during the loading. So the PlayerController may not exist at this time.
Try to move this code in BeginPlay and it should work.

Trying to get actors in game mode overriden method InitGame but getting access violation error with line uncommented.
What I’m doing wrong?

void AGameGameMode::InitGame(const FString& MapName, const FString& Options, FString& ErrorMessage)
	Super::InitGame(MapName, Options, ErrorMessage);

	APlayerController * c = UGameplayStatics::GetPlayerController(GetWorld(), 0);

	for (TActorIterator<AActor> ActorItr(GetWorld()); ActorItr; ++ActorItr)