1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-20 18:55:32 +00:00

(trunk web) safeguard against exceptions when sorting-by-name when a torrent's name hasn't yet finished downloading.

This commit is contained in:
Jordan Lee 2011-08-26 22:59:42 +00:00
parent 5715bae7fd
commit 354a92c73d

View file

@ -285,7 +285,7 @@ Torrent.prototype =
if (name)
f.collatedName = name.toLowerCase();
}
return f.collatedName;
return f.collatedName || '';
},
getCollatedTrackers: function() {
var f = this.fields;
@ -294,7 +294,7 @@ Torrent.prototype =
if (trackers)
f.collatedTrackers = this.collateTrackers(trackers);
}
return f.collatedTrackers;
return f.collatedTrackers || '';
},
/****