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)

git-svn-id: svn://10.0.0.236/trunk@233928 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk 2007-09-05 10:45:29 +00:00
parent 819e1545f0
commit 3e677c51a8

View File

@ -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)
{