Using OnlineSubsystemNull, IOnlineSubsystem::GetVoiceInferface() returns nullptr

Hello,

I’ve been using VOIP in the OnlineSubsystemNull in my project UE4.23 for quite a long time and it was working fine.

Since I upgraded to 4.27, I get this weird behaviour where I always get a nullptr calling the IOnlineSubsystem::GetVoiceInferface() method.

Here is my settings in the DefaultEngine.ini :

[Voice]
bEnabled=true

[OnlineSubsystem]
DefaultPlatformService=Null
bHasVoiceEnabled=true

I also added in the build.cs PublicDependencyModuleNames “OnlineSubsystem”, “OnlineSubsystemUtils” as well.

Does someone has an hint for this ? Thank you for your time

Hello,buddy. maybe try to open OnlineSubsystemNull.cpp file and find “DESTRUCT_INTERFACE”.i got same situation just like you. i was try to create session by getting SessionInterface but is return nullptr. i find “DESTRUCT_INTERFACE(VoiceInterface)” in my OnlineSubsystemNull.cpp file. try to annotate it out and maybe it will just work fine. i just annotate “Sessioninterface” out and get what i want.