[Bug] CancelFindSessions Crash

Calling CancelFindSessions on the Null Online Subsystem causes a crash if you are not currently searching for sessions.

bool FOnlineSessionNull::CancelFindSessions()
{
	uint32 Return = E_FAIL;
	if (CurrentSessionSearch->SearchState == EOnlineAsyncTaskState::InProgress)
	{

This was fixed on the Steam Online Subsystem sometime after 4.8 by doing this, but not for Null:

bool FOnlineSessionSteam::CancelFindSessions()
{
	uint32 Return = E_FAIL;
	if (CurrentSessionSearch.IsValid() && CurrentSessionSearch->SearchState == EOnlineAsyncTaskState::InProgress)
	{

Hello ,

Thank you for reporting this issue. It seems as though the fix has actually already been made to our latest internal build and should be rolling out at some point. By “the fix” I mean that an IsValid check has already been added to that If check. Unfortunately, seeing as I can’t find a bug report that the fix was in result of, I’m not sure exactly what commit implemented said fix so I won’t be able to provide that. At least the fix is simple so that you should be able to implement it manually into a source compiled engine if you wish.

Have a nice day!