bug 62502 - null pointer check. sr=waterson, r=karnaze.

This commit is contained in:
karnaze%netscape.com 2001-01-26 23:40:36 +00:00
parent 15a30f4d39
commit deaf6f4d1d
2 changed files with 6 additions and 0 deletions

View File

@ -1767,6 +1767,9 @@ nsTableRowGroupFrame::GetLine(PRInt32 aLineNumber, nsIFrame** aFirstFrameOnLine,
// not gonna touch aLineBounds right now
CellData* firstCellData = cellMap->GetCellAt(aLineNumber, 0);
if(!firstCellData)
return NS_ERROR_FAILURE;
*aFirstFrameOnLine = (nsIFrame*)firstCellData->GetCellFrame();
if(!(*aFirstFrameOnLine))
{

View File

@ -1767,6 +1767,9 @@ nsTableRowGroupFrame::GetLine(PRInt32 aLineNumber, nsIFrame** aFirstFrameOnLine,
// not gonna touch aLineBounds right now
CellData* firstCellData = cellMap->GetCellAt(aLineNumber, 0);
if(!firstCellData)
return NS_ERROR_FAILURE;
*aFirstFrameOnLine = (nsIFrame*)firstCellData->GetCellFrame();
if(!(*aFirstFrameOnLine))
{