fix null pointer when playing tutorial

This commit is contained in:
hba56
2017-09-14 16:27:36 +12:00
parent 4cb0948aaf
commit 004aebceb5
@@ -80,6 +80,9 @@ public class HostGameController extends Controller {
*/
public void alertMatchBrowser(){
try{
if (matchBrowserInterface == null){
return;//private game
}
matchBrowserInterface.startSendingHostData(App.game.getHostedGameData(), udpSocket);
}catch (IOException e){
System.err.println("failed to send out hosted game info");