null-ptr check for talkback crash that I cannot duplicate. b=105168 r=karnaze sr=hyatt

git-svn-id: svn://10.0.0.236/trunk@109152 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
attinasi%netscape.com 2001-11-29 00:10:31 +00:00
parent 16001eccc7
commit e47c372e52
2 changed files with 12 additions and 0 deletions

View File

@ -2302,6 +2302,12 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd)
while (nsnull != pfd) {
nsIFrame* frame = pfd->mFrame;
// sanity check (see bug 105168, non-reproducable crashes from null frame)
NS_ASSERTION(frame, "null frame in PerFrameData - something is very very bad");
if (!frame) {
return;
}
// Compute the logical height of the frame
nscoord logicalHeight;
nscoord topLeading;

View File

@ -2302,6 +2302,12 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd)
while (nsnull != pfd) {
nsIFrame* frame = pfd->mFrame;
// sanity check (see bug 105168, non-reproducable crashes from null frame)
NS_ASSERTION(frame, "null frame in PerFrameData - something is very very bad");
if (!frame) {
return;
}
// Compute the logical height of the frame
nscoord logicalHeight;
nscoord topLeading;