Avoid NULL reference crash.
This commit is contained in:
parent
970159d98f
commit
094a87eb94
@ -137,6 +137,11 @@ void OnlineProfileServers::doQuickPlay()
|
|||||||
|
|
||||||
// select first one
|
// select first one
|
||||||
const Server *server = ServersManager::get()->getQuickPlay();
|
const Server *server = ServersManager::get()->getQuickPlay();
|
||||||
|
if(!server)
|
||||||
|
{
|
||||||
|
Log::error("OnlineProfileServers", "Can not find quick play server.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// do a join request
|
// do a join request
|
||||||
XMLRequest *join_request = new RequestConnection::ServerJoinRequest();
|
XMLRequest *join_request = new RequestConnection::ServerJoinRequest();
|
||||||
|
Loading…
Reference in New Issue
Block a user