Merge "Temporary NPE mitigation." into tm-dev am: 08009d5e02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17571865 Change-Id: I14d270fe7e1b226a858cc1e465262e97024c1fc2 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