Fix Crash

This commit is contained in:
Schoumi 2017-10-15 20:43:24 +02:00
父節點 a6934bccb8
當前提交 a7225d626a
共有 1 個檔案被更改,包括 2 行新增1 行删除

查看文件

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