diff --git a/layout/generic/nsInlineFrame.cpp b/layout/generic/nsInlineFrame.cpp index 3ccf389839ec..5ef4bd4310a6 100644 --- a/layout/generic/nsInlineFrame.cpp +++ b/layout/generic/nsInlineFrame.cpp @@ -252,6 +252,10 @@ nsInlineFrame::ReparentFloatsForInlineChild(nsIFrame* aOurLineContainer, NS_ASSERTION(aOurLineContainer->GetNextContinuation() || aOurLineContainer->GetPrevContinuation(), "Don't call this when we have no continuation, it's a waste"); + if (!aFrame) { + NS_ASSERTION(aReparentSiblings, "Why did we get called?"); + return; + } nsIFrame* ancestor = aFrame; nsIFrame* ancestorBlockChild;