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

This commit is contained in:
attinasi%netscape.com 2001-11-29 00:10:31 +00:00
Родитель 78caae6067
Коммит ca54f79ce1
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;