Fix Crash
This commit is contained in:
parent
a6934bccb8
commit
a7225d626a
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue