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

Commit 174c74fe authored by Diya Bera's avatar Diya Bera
Browse files

Adding a null checker

Fixes: 257357979
Fixes: 257134941
Test: N/A
Change-Id: I03de3b123d5db5fa9555479548dde17732aca3af
parent 78f3bff6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -637,7 +637,7 @@ public class Sensor {

    public void onBinderDied() {
        final BaseClientMonitor client = mScheduler.getCurrentClient();
        if (client.isInterruptable()) {
        if (client != null && client.isInterruptable()) {
            Slog.e(mTag, "Sending ERROR_HW_UNAVAILABLE for client: " + client);
            final ErrorConsumer errorConsumer = (ErrorConsumer) client;
            errorConsumer.onError(FaceManager.FACE_ERROR_HW_UNAVAILABLE,