add a check to ensure data was returned and ignore otherwise

This commit is contained in:
Damien Churchill 2008-10-01 07:28:13 +00:00
parent 2765a97506
commit 1c21066fec

View file

@ -146,6 +146,7 @@ Deluge.UI = {
},
updated: function(data) {
if (!data) return;
this.torrents = new Hash(data.torrents);
this.stats = data.stats;
this.filters = data.filters;