-
Matt Reynolds authored
In NintendoDataFetcher::GetGamepadData we call GetPadState to get a pointer to an unused PadState slot. This pointer may be null if there are no more unused slots (Chrome supports at most four connected gamepads). This CL adds a null check so we don't try to dereference the null PadState and crash. BUG=996052 Change-Id: I48cb1611b1c557e5eaa1a5791bf68d5acf8841ad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1762603 Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by:
Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org> Cr-Commit-Position: refs/heads/master@{#689709}
6edcc8d4