From: Zalan Bujtas Date: Fri, 6 Mar 2015 07:33:11 +0000 (+0000) Subject: Check for NULL pointer in SearchInputType. X-Git-Tag: archive/raspbian/2.14.3-1+rpi1~1^2^2^2~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d32c6ecafdf678cdfa369616a2f07272db00a84;p=webkit2gtk.git Check for NULL pointer in SearchInputType. =================================================================== Gbp-Pq: Name render-text-control.patch --- diff --git a/Source/WebCore/html/SearchInputType.cpp b/Source/WebCore/html/SearchInputType.cpp index 418dd0b094..de2ec76855 100644 --- a/Source/WebCore/html/SearchInputType.cpp +++ b/Source/WebCore/html/SearchInputType.cpp @@ -185,7 +185,7 @@ bool SearchInputType::searchEventsShouldBeDispatched() const void SearchInputType::didSetValueByUserEdit(ValueChangeState state) { - if (m_cancelButton) + if (m_cancelButton && element().renderer()) toRenderSearchField(element().renderer())->updateCancelButtonVisibility(); // If the incremental attribute is set, then dispatch the search event