diff --git a/deluge/ui/web/js/deluge-connections.js b/deluge/ui/web/js/deluge-connections.js index dcf27655c..93014008d 100644 --- a/deluge/ui/web/js/deluge-connections.js +++ b/deluge/ui/web/js/deluge-connections.js @@ -12,6 +12,7 @@ Deluge.Connections = { $clear(Deluge.Connections.running); Deluge.Connections.Window.hide(); var selected = Deluge.Connections.Grid.getSelectionModel().getSelected(); + if (!selected) return; var id = selected.id; Deluge.Client.web.connect(id, { onSuccess: function(methods) {