Fix Crash

pull/1/head
Schoumi 2017-10-15 20:43:24 +02:00
parent a6934bccb8
commit a7225d626a
1 changed files with 2 additions and 1 deletions

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();
}
})