summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-07-03 21:36:20 +0200
committerGitHub <noreply@github.com>2018-07-03 21:36:20 +0200
commit057bc2ddba93c1170aef58922c2a7beba04d0de2 (patch)
tree409065a6797ea92d02d42feea1665736946c6a06
parented1bb1455dda93286832cce314ba37893c1bd674 (diff)
parent366e7e9f9861a3a6cee28b13628e13fe6666301d (diff)
downloaduxp-057bc2ddba93c1170aef58922c2a7beba04d0de2.tar.gz
Merge pull request #587 from janekptacijarabaci/aboutSessionRestore_error_3
[PALEMOON] about:sessionrestore - fix an error "treeView.treeBox is null" in aboutSessionRestore.js
-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