From f58900f87a72768903acade7ed7788a1ac1695f3 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Tue, 20 Mar 2001 15:40:18 +0000 Subject: [PATCH] bug 68912 - allow nsHTMLTableRowElement::SetCells() to pass a null value. sr=attinasi --- content/html/content/src/nsHTMLTableRowElement.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/html/content/src/nsHTMLTableRowElement.cpp b/content/html/content/src/nsHTMLTableRowElement.cpp index 4e809b903af9..df312c61d284 100644 --- a/content/html/content/src/nsHTMLTableRowElement.cpp +++ b/content/html/content/src/nsHTMLTableRowElement.cpp @@ -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 node;