I am trying to validate the instance of online subsystem interface.
it works fine in a standalone executable.
But in the editor it crashes.
So some instance inside this function must be null when executed in the editor.
Then I tried to do some checks to prevent IOnlineSubsystem::Get() from being executed when in the editor.

However the first two checks return true and IOnlineSubsystem::Get() is executed and then BOOM!!!
So it’s obvious I’m not doing the correct checks.
What is the correct way to check this?
Thank you so much!!
I think that the ideal is to use the default OnlineSubsystemNULL in the editor and in standalone OnlineSubsystemEOS. I thought this would happen internally automatically. But I suspect that this is not the case, and that this is what is causing this problem. (It’s just a guess)
If I am correct, maybe it is necessary to change some configuration in “DefaultEngine.ini”
Here is my current configuration:
[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName=“GameNetDriver”,DriverClassName=“OnlineSubsystemEOS.NetDriverEOS”,DriverClassNameFallback=“OnlineSubsystemUtils.IpNetDriver”)
[OnlineSubsystem]
DefaultPlatformService=EOS[OnlineSubsystemEOS]
bEnabled=true[OnlineServices]
DefaultServices=Epic[OnlineServices.EOS]
bUseEAS=false[/Script/OnlineSubsystemUtils.OnlineEngineInterfaceImpl]
!CompatibleUniqueNetIdTypes=ClearArray
+CompatibleUniqueNetIdTypes=EOS
[/Script/OnlineSubsystemEOS.EOSSettings]
CacheDir=CacheDir
DefaultArtifactName=…
TickBudgetInMilliseconds=0
bEnableOverlay=True
bEnableSocialOverlay=True
bShouldEnforceBeingLaunchedByEGS=False
TitleStorageReadChunkLength=1600
;+Artifacts=(ArtifactName=“…”,
ProductId=“…”,
SandboxId=“…,
DeploymentId=”…“,
EncryptionKey=”…")
bUseEAS=True
bUseEOSConnect=True
bMirrorStatsToEOS=True
bMirrorAchievementsToEOS=True
bUseEOSSessions=True
bMirrorPresenceToEAS=True
bEnableEditorOverlay=True
[/Script/OnlineSubsystemEOS.NetDriverEOS]
bIsUsingP2PSockets=true
[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName=“GameNetDriver”,DriverClassName=“OnlineSubsystemEOS.NetDriverEOS”,DriverClassNameFallback=“OnlineSubsystemUtils.IpNetDriver”)
Maybe there is something wrong in my DefaultEngine.ini?
Thank you so much!!




