Commit a7225d62 authored by Schoumi's avatar Schoumi

Fix Crash

parent a6934bcc
Pipeline #103 passed with stage
in 29 seconds
......@@ -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();
}
})
......
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