Avoid NULL reference crash.

This commit is contained in:
hiker 2016-03-17 10:00:03 +11:00
parent 970159d98f
commit 094a87eb94

View File

@ -137,6 +137,11 @@ void OnlineProfileServers::doQuickPlay()
// select first one
const Server *server = ServersManager::get()->getQuickPlay();
if(!server)
{
Log::error("OnlineProfileServers", "Can not find quick play server.");
return;
}
// do a join request
XMLRequest *join_request = new RequestConnection::ServerJoinRequest();