Commit cff76a30 authored by Michael Thiessen's avatar Michael Thiessen Committed by Commit Bot

VR: Add null check when delivering UI input.

This is a speculative fix for FYI bot crashes.

Change-Id: I8cea6aa917eb32c93f8a0f1967eb630d8c2fca88
Reviewed-on: https://chromium-review.googlesource.com/881663Reviewed-by: default avatarBrian Sheedy <bsheedy@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531315}
parent ea3b54d0
...@@ -857,6 +857,9 @@ void VrShell::ProcessContentGesture(std::unique_ptr<blink::WebInputEvent> event, ...@@ -857,6 +857,9 @@ void VrShell::ProcessContentGesture(std::unique_ptr<blink::WebInputEvent> event,
if (content_id_ != content_id) if (content_id_ != content_id)
return; return;
if (!android_ui_gesture_target_)
return;
android_ui_gesture_target_->DispatchWebInputEvent(std::move(event)); android_ui_gesture_target_->DispatchWebInputEvent(std::move(event));
} }
......
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