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

Commit ee155cad authored by Aravind Akella's avatar Aravind Akella
Browse files

Fix crash in SensorService. Ignore devices with no sensors.

Change-Id: I1491740baa6348f97c336b6883b11ad2ab93cf73
parent 8f37aa50
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -271,6 +271,8 @@ status_t SensorService::dump(int fd, const Vector<String16>& args)
                dev.enableAllSensors();
            }
            return status_t(NO_ERROR);
        } else if (mSensorList.size() == 0) {
            result.append("No Sensors on the device\n");
        } else {
            // Default dump the sensor list and debugging information.
            result.append("Sensor List:\n");