From 5126acbf62690717cee63c11cec93855154e38cd Mon Sep 17 00:00:00 2001 From: Fedor Date: Fri, 3 Apr 2020 20:56:18 +0300 Subject: [PATCH] [Mypal] Make getCellProperties a bit more robust. --- application/palemoon/modules/AutoCompletePopup.jsm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/palemoon/modules/AutoCompletePopup.jsm b/application/palemoon/modules/AutoCompletePopup.jsm index c3698f905..2fe5e70bb 100644 --- a/application/palemoon/modules/AutoCompletePopup.jsm +++ b/application/palemoon/modules/AutoCompletePopup.jsm @@ -42,7 +42,13 @@ var AutoCompleteTreeView = { getParentIndex: function(idx) { return -1; }, hasNextSibling: function(idx, after) { return idx < this.results.length - 1 }, toggleOpenState: function(idx) { }, - getCellProperties: function(idx, column) { return this.results[idx].style || ""; }, + getCellProperties: function(idx, column) { + if (this.results && this.results[idx]) { + return this.results[idx].style || ""; + } else { + return ""; + } + }, getRowProperties: function(idx) { return ""; }, getImageSrc: function(idx, column) { return null; }, getProgressMode : function(idx, column) { },