diff options
author | Thomas Groman <tgroman@nuegia.net> | 2020-05-07 22:07:08 -0700 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2020-05-07 22:07:08 -0700 |
commit | d39734fa6cb255bc431f7774b9dcf8de07e054c0 (patch) | |
tree | e1cbc2dd6d4bc92b7063021a1be8777963b75302 /webbrowser/modules | |
parent | f8db70f7d61b90e2ed273b71559b6a5b3b62e5be (diff) | |
download | webbrowser-d39734fa6cb255bc431f7774b9dcf8de07e054c0.tar webbrowser-d39734fa6cb255bc431f7774b9dcf8de07e054c0.tar.gz webbrowser-d39734fa6cb255bc431f7774b9dcf8de07e054c0.tar.lz webbrowser-d39734fa6cb255bc431f7774b9dcf8de07e054c0.tar.xz webbrowser-d39734fa6cb255bc431f7774b9dcf8de07e054c0.zip |
make getCellPrperties more robust
Diffstat (limited to 'webbrowser/modules')
-rw-r--r-- | webbrowser/modules/AutoCompletePopup.jsm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webbrowser/modules/AutoCompletePopup.jsm b/webbrowser/modules/AutoCompletePopup.jsm index c3698f9..ec2de26 100644 --- a/webbrowser/modules/AutoCompletePopup.jsm +++ b/webbrowser/modules/AutoCompletePopup.jsm @@ -1,7 +1,3 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - "use strict"; const Cc = Components.classes; @@ -42,7 +38,10 @@ 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) { }, |