From 468e61b26430d0035ad218b5042f32f499f294da Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 31 Jul 2015 07:42:26 -0400
Subject: [PATCH] Fix some javascript errors in rare situations (#1490441)

---
 program/js/list.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/js/list.js b/program/js/list.js
index 5a420b1..0dc700e 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -565,6 +565,10 @@
  */
 click_row: function(e, id)
 {
+  // sanity check
+  if (!id || !this.rows[id])
+    return false;
+
   // don't do anything (another action processed before)
   if (!this.is_event_target(e))
     return true;

--
Gitblit v1.9.1