Merge "Temporary NPE mitigation." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
08009d5e02
@@ -1421,8 +1421,11 @@ public final class InputManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mInputDevices = new SparseArray<InputDevice>();
|
mInputDevices = new SparseArray<InputDevice>();
|
||||||
for (int i = 0; i < ids.length; i++) {
|
// TODO(b/223905476): remove when the rootcause is fixed.
|
||||||
mInputDevices.put(ids[i], null);
|
if (ids != null) {
|
||||||
|
for (int i = 0; i < ids.length; i++) {
|
||||||
|
mInputDevices.put(ids[i], null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user