bug 68912 - allow nsHTMLTableRowElement::SetCells() to pass a null value. sr=attinasi

This commit is contained in:
karnaze%netscape.com 2001-03-20 15:40:18 +00:00
Родитель 3407fc1887
Коммит f58900f87a
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -555,7 +555,10 @@ nsHTMLTableRowElement::SetCells(nsIDOMHTMLCollection* aValue)
DeleteCell(i);
}
aValue->GetLength(&numCells);
numCells = 0;
if (aValue) {
aValue->GetLength(&numCells);
}
for (i = 0; i < numCells; i++) {
nsCOMPtr<nsIDOMNode> node;