summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index b54b4daf3..fd14c630c 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1282,7 +1282,8 @@ use_arrow_key: function(keyCode, mod_key)
*/
scrollto: function(id)
{
- var row = this.rows[id].obj;
+ var row = this.rows[id] ? this.rows[id].obj : null;
+
if (row && this.frame) {
var scroll_to = Number(row.offsetTop),
head_offset = 0;