DescriptionAdded checks in TouchDevice.java to avoid NPEs.
It is possible that an input device has been removed from the system
right after grabbing the device ids using InputDevice.getDeviceIds().
This CL adds checks in TouchDevice.java to avoid NPEs in such cases.
BUG=480619
Committed: https://crrev.com/6d91546a0756a6b2171ad146a0e02ee28fce1975
Cr-Commit-Position: refs/heads/master@{#326837}
Patch Set 1 #
Total comments: 4
Patch Set 2 : #Messages
Total messages: 11 (2 generated)
|