From 366e7e9f9861a3a6cee28b13628e13fe6666301d Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Tue, 3 Jul 2018 20:18:44 +0200 Subject: [PALEMOON] about:sessionrestore - fix an error "treeView.treeBox is null" in aboutSessionRestore.js Issue #350 --- .../palemoon/components/sessionstore/content/aboutSessionRestore.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application') diff --git a/application/palemoon/components/sessionstore/content/aboutSessionRestore.js b/application/palemoon/components/sessionstore/content/aboutSessionRestore.js index 2459b67f5..2b6f9eaeb 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 -- cgit v1.2.3