Skip to content
Commit e23c00ee authored by David Munro's avatar David Munro Committed by Commit Bot
Browse files

exo: Fix a nullptr dereference

In some cases (e.g. the linked bug) source can be null. SetSelection is
already a no-op for nullptr source (and invalid for nullptr data_device)
so there's no change in behaviour for the case where event_type !=
nullopt, and it fixes a nullptr dereference when event_type == nullopt.

Bug: 1138761
Test: Deploy, launch evolution, Chrome doesn't crash
Change-Id: I23da80e418834f5c1e38eecd2f0b140638b63a8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487022


Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: default avatarDaichi Hirono <hirono@chromium.org>
Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Reviewed-by: default avatarFergus Dall <sidereal@google.com>
Commit-Queue: David Munro <davidmunro@google.com>
Cr-Commit-Position: refs/heads/master@{#820056}
parent 33ed77d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment