Commit a7225d62 authored by Schoumi's avatar Schoumi

Fix Crash

parent a6934bcc
......@@ -69,6 +69,7 @@ public class ServerDialog extends DialogFragment {
url += urlText.getText();
//add server to database
Database.getInstance(getActivity().getApplicationContext()).addServer(url);
if(listener != null)
listener.updateServerList();
dismiss();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment