Bug 125689 Mozinvaders crashes Mozilla! [@ nsGrid::FindRowsAndColumns]

r=varga sr=kin
<grid></grid> with no rows or collumns


git-svn-id: svn://10.0.0.236/trunk@123655 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com 2002-06-20 00:14:29 +00:00
parent e2a912e048
commit cc00cc5f7c

View File

@ -279,7 +279,9 @@ nsGrid::FindRowsAndColumns(nsIBox** aRows, nsIBox** aColumns)
// find the boxes that contain our rows and columns
nsIBox* child = nsnull;
mBox->GetChildBox(&child);
// if we have <grid></grid> then mBox will be null (bug 125689)
if (mBox)
mBox->GetChildBox(&child);
while(child)
{