summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-03 20:18:44 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-03 20:18:44 +0200
commit366e7e9f9861a3a6cee28b13628e13fe6666301d (patch)
treee411c5d818e0c42d58816b05c4e8a82bfa8a6319
parenta003b2be94b2f32b1e7527227a39e3714f8168a3 (diff)
downloaduxp-366e7e9f9861a3a6cee28b13628e13fe6666301d.tar.gz
[PALEMOON] about:sessionrestore - fix an error "treeView.treeBox is null" in aboutSessionRestore.js
Issue #350
-rw-r--r--application/palemoon/components/sessionstore/content/aboutSessionRestore.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/palemoon/components/sessionstore/content/aboutSessionRestore.js b/application/palemoon/components/sessionstore/content/aboutSessionRestore.js
index 2459b67f57..2b6f9eaeb5 100644
--- a/application/palemoon/components/sessionstore/content/aboutSessionRestore.js
+++ b/application/palemoon/components/sessionstore/content/aboutSessionRestore.js
@@ -134,6 +134,9 @@ function onListClick(aEvent) {
if (aEvent.button == 2)
return;
+ if (!treeView.treeBox) {
+ return;
+ }
var cell = treeView.treeBox.getCellAt(aEvent.clientX, aEvent.clientY);
if (cell.col) {
// Restore this specific tab in the same window for middle/double/accel clicking