Editor crash at spawn actor call c++

Thanks for the answer , but apparently, I can’t get the world from this actor :

LoginId:
EpicAccountId:

Assertion failed: world == nullptr [] [Line: 26] No world!

UE4Editor_Core
UE4Editor_Core
UE4Editor_MECATHERM_2114!ASpawner::BeginPlay() []
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll

Any idea why?