Possible null pointer access during master-slave synchronization

This commit is contained in:
luhongliang 2024-04-29 12:01:05 +08:00 committed by Blyron
parent 063cc9d902
commit 9a75c16706
1 changed files with 5 additions and 1 deletions

View File

@ -136,7 +136,11 @@ void FCarlaEngine::NotifyInitGame(const UCarlaSettings &Settings)
case carla::multigpu::MultiGPUCommand::LOAD_MAP:
{
FString FinalPath((char *) Data.data());
UGameplayStatics::OpenLevel(CurrentEpisode->GetWorld(), *FinalPath, true);
if(GetCurrentEpisode())
{
UGameplayStatics::OpenLevel(GetCurrentEpisode()->GetWorld(), *FinalPath, true);
}
break;
}
case carla::multigpu::MultiGPUCommand::GET_TOKEN: