From 7a52a036388d7a3a748fe50a2e1bc8a78716f2cc Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 6 Mar 2015 07:33:11 +0000 Subject: [PATCH] NULL pointer check in HTMLPlugInImageElement =================================================================== Gbp-Pq: Name fix-null-renderer.patch --- Source/WebCore/html/HTMLPlugInImageElement.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/WebCore/html/HTMLPlugInImageElement.cpp b/Source/WebCore/html/HTMLPlugInImageElement.cpp index 496ed5b00a..33872ec1d6 100644 --- a/Source/WebCore/html/HTMLPlugInImageElement.cpp +++ b/Source/WebCore/html/HTMLPlugInImageElement.cpp @@ -334,6 +334,9 @@ void HTMLPlugInImageElement::updateSnapshot(PassRefPtr image) m_snapshotImage = image; + if (!renderer()) + return; + if (renderer()->isSnapshottedPlugIn()) { toRenderSnapshottedPlugIn(renderer())->updateSnapshot(image); return; -- 2.30.2