Browse Source

Fix Crash

tags/release-v2.8
Schoumi 2 years ago
parent
commit
a7225d626a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/fr/mobdev/goblim/dialog/ServerDialog.java

+ 2
- 1
app/src/main/java/fr/mobdev/goblim/dialog/ServerDialog.java View File

@@ -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…
Cancel
Save