Commit ed77a1a8 authored by Navid Zolghadr's avatar Navid Zolghadr Committed by Commit Bot

Check for view nullptr to prevent a crash

Bug: 1045954
Change-Id: I1a52383a4b3240fdb87d93e07dd312385bca0156
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2071285Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Commit-Queue: Navid Zolghadr <nzolghadr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744838}
parent 50cf9183
...@@ -167,8 +167,8 @@ void TouchEventAckQueue::MarkAcked(const TouchEventWithLatencyInfo& touch_event, ...@@ -167,8 +167,8 @@ void TouchEventAckQueue::MarkAcked(const TouchEventWithLatencyInfo& touch_event,
// If the touch-event was sent directly to the view without going through // If the touch-event was sent directly to the view without going through
// RenderWidgetHostInputEventRouter, as is the case with AndroidWebView, // RenderWidgetHostInputEventRouter, as is the case with AndroidWebView,
// then we must ack it directly. // then we must ack it directly.
DCHECK(target_view); if (target_view)
target_view->ProcessAckedTouchEvent(touch_event, ack_result); target_view->ProcessAckedTouchEvent(touch_event, ack_result);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment