Skip to content
Commit 1bfae246 authored by HQ Liu's avatar HQ Liu
Browse files

Fix possible ArrayIndexOutOfBoundsException

Seeing ArrayIndexOutOfBoundsException while adding an input device with
vibrator. The index used to iterate vibrator ids increased before being
used to get the id from an sparsed array, so it is causing out of bounds
exception.

Bug: 253079798
Test: m; InputDeviceVibratorManagerTest
Change-Id: I019790f74184058020194ae42a35d8ed972ceaa7
parent 3ed564d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment