Merge "Temporary NPE mitigation." into tm-dev am: 08009d5e02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17571865 Change-Id: Ief41687a91214f8d6386c07ffa9040e1eb7d066d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1421,8 +1421,11 @@ public final class InputManager {
|
||||
}
|
||||
|
||||
mInputDevices = new SparseArray<InputDevice>();
|
||||
for (int i = 0; i < ids.length; i++) {
|
||||
mInputDevices.put(ids[i], null);
|
||||
// TODO(b/223905476): remove when the rootcause is fixed.
|
||||
if (ids != null) {
|
||||
for (int i = 0; i < ids.length; i++) {
|
||||
mInputDevices.put(ids[i], null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user