Prevent crash in case of issues creating the server.

This commit is contained in:
hiker 2015-10-20 09:37:51 +11:00
parent 46b4d275a9
commit 6fc4b9c19d

View File

@ -86,7 +86,8 @@ void NetworkingLobby::init()
setInitialFocus();
DemoWorld::resetIdleTime(); //FIXME : what's this?
m_server = ServersManager::get()->getJoinedServer();
m_server_name_widget->setText(m_server->getName(),false);
if(m_server)
m_server_name_widget->setText(m_server->getName(), false);
} // init