You must check all your pointers before use them… like this:
if (OnlineServices==nullptr || SessionsInterface==nullptr || GEngine==nullptr)
{
//error message here
return false;
}
Seems the “AccountId” is not valid
I think OnlineSubsystem is deprecated:
use FUniqueNetIdRepl UniqueNetIdRepl;
to get the AcountId