Avoid NULL reference crash.
This commit is contained in:
parent
970159d98f
commit
094a87eb94
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user