From 8b1f7deec85520d0a5fd0c1dd322516cad981f07 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Mon, 5 Mar 2018 18:12:21 +0000 Subject: Fix crash when dragging scrollbar in XFA form. Bug: chromium:809612 Change-Id: I171d836927fc707388444726d3918b2cbbb39002 Reviewed-on: https://pdfium-review.googlesource.com/27890 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- xfa/fwl/cfwl_scrollbar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/fwl') diff --git a/xfa/fwl/cfwl_scrollbar.cpp b/xfa/fwl/cfwl_scrollbar.cpp index f723124e86..a65d04e1a4 100644 --- a/xfa/fwl/cfwl_scrollbar.cpp +++ b/xfa/fwl/cfwl_scrollbar.cpp @@ -385,7 +385,8 @@ void CFWL_ScrollBar::OnLButtonDown(const CFX_PointF& point) { } void CFWL_ScrollBar::OnLButtonUp(const CFX_PointF& point) { - m_pTimerInfo->StopTimer(); + if (m_pTimerInfo) + m_pTimerInfo->StopTimer(); m_bMouseDown = false; DoMouseUp(0, m_rtMinBtn, m_iMinButtonState, point); DoMouseUp(1, m_rtThumb, m_iThumbButtonState, point); -- cgit v1.2.3