mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
bug 62502 - null pointer check. sr=waterson, r=karnaze.
This commit is contained in:
parent
15a30f4d39
commit
deaf6f4d1d
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user