summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-03-05 18:12:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-05 18:12:21 +0000
commit8b1f7deec85520d0a5fd0c1dd322516cad981f07 (patch)
treef220c728a7825e70db296e03c5c71497edc62407
parentfa1a0f6e4ddb2b30726a6d7403c39ee57295d920 (diff)
downloadpdfium-8b1f7deec85520d0a5fd0c1dd322516cad981f07.tar.xz
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 <dsinclair@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
-rw-r--r--xfa/fwl/cfwl_scrollbar.cpp3
1 files changed, 2 insertions, 1 deletions
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);