Bug 319009 - Check tree, tree.view and tree.view.selection exist before trying to use them.

ChatZilla only.
r=samuel
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-12-04 22:37:47 +00:00
Родитель 1f1e8541b0
Коммит efd6b8c912
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1452,7 +1452,7 @@ function getSelectedNicknames(tree)
function setSelectedNicknames(tree, nicknameAry)
{
if (!nicknameAry)
if (!tree || !tree.view || !tree.view.selection || !nicknameAry)
return;
var item, unicodeName, resultAry = [];
// Clear selection: