Add a missing null pointer check after r148759.
[WebKit-https.git] / Source / WebCore / rendering / RenderObject.cpp
index 95fb75cd6fdeae7a103212b5e55b2ade1e05f024..9aad14e1bbaa2587f196e7908395dab484ae9237 100644 (file)
@@ -801,7 +801,7 @@ RenderBlock* RenderObject::containingBlock() const
         // not the inline itself, to avoid having a positioned objects list in all RenderInlines
         // and use RenderBlock* as this function's return type.
         // Use RenderBlock::container() to obtain the inline.
-        if (o->isRenderInline())
+        if (o && o->isRenderInline())
             o = o->containingBlock();
 
         while (o && o->isAnonymousBlock())