Fix Crash

This commit is contained in:
Schoumi 2017-10-15 20:43:24 +02:00
parent a6934bccb8
commit a7225d626a

View file

@ -69,7 +69,8 @@ public class ServerDialog extends DialogFragment {
url += urlText.getText();
//add server to database
Database.getInstance(getActivity().getApplicationContext()).addServer(url);
listener.updateServerList();
if(listener != null)
listener.updateServerList();
dismiss();
}
})