Make GetFieldSetAreaFrame() handle a null first child. b=299188 r+sr=dbaron a=benjamin

This commit is contained in:
mats.palmgren%bredband.net 2005-06-30 20:31:40 +00:00
parent 310eb562eb
commit 4c0c7f56ae

View File

@ -438,7 +438,7 @@ GetFieldSetAreaFrame(nsIFrame* aFieldsetFrame)
{
// Depends on the fieldset child frame order - see ConstructFieldSetFrame() below.
nsIFrame* firstChild = aFieldsetFrame->GetFirstChild(nsnull);
return firstChild->GetNextSibling() ? firstChild->GetNextSibling() : firstChild;
return firstChild && firstChild->GetNextSibling() ? firstChild->GetNextSibling() : firstChild;
}
//----------------------------------------------------------------------