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:
parent
16001eccc7
commit
e47c372e52
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user