Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c110d59a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Check that InputDevice isn't null and add annotations" into tm-dev am: 94bba027

parents 38ea4274 94bba027
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ public class InputDeviceSensorManager implements InputManager.InputDeviceListene
     */
    private void updateInputDeviceSensorInfoLocked(int deviceId) {
        final InputDevice inputDevice = InputDevice.getDevice(deviceId);
        if (inputDevice.hasSensor()) {
        if (inputDevice != null && inputDevice.hasSensor()) {
            final InputSensorInfo[] sensorInfos =
                    mInputManager.getSensorList(deviceId);
            populateSensorsForInputDeviceLocked(deviceId, sensorInfos);