Commit a7225d62 authored by Schoumi's avatar Schoumi

Fix Crash

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