From da0c59aee061608096a63c25d2cf9ab8687e77ff Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Wed, 5 Sep 2007 10:45:29 +0000 Subject: [PATCH] Bug 295275 - Verify we have a tree view before setting things on it, fixes floating/unfloating views losing their contents. r=gijskruitbosch+bugs@gmail.com (Gijs Kruitbosch) Venkman Only (NPOTB) --- extensions/venkman/resources/content/venkman-views.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/venkman/resources/content/venkman-views.js b/extensions/venkman/resources/content/venkman-views.js index a4b107a9eed..9f6fe547b98 100644 --- a/extensions/venkman/resources/content/venkman-views.js +++ b/extensions/venkman/resources/content/venkman-views.js @@ -146,10 +146,8 @@ function syncTreeView (treeContent, treeView, cb) throw "tantrum"; treeContent.treeBoxObject.view = treeView; - if (treeView.selection) - { + if (treeView && treeView.selection) treeView.selection.tree = treeContent.treeBoxObject; - } } catch (ex) {