зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1f1e8541b0
Коммит
efd6b8c912
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче