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

Commit 68e03102 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Add a missing null-pointer check in HeadsetService.stop()

Bug: 27678483

Change-Id: I288b905d6b3f827a94365d512305cd29e186f3d4
parent 15799756
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -78,7 +78,9 @@ public class HeadsetService extends ProfileService {
        } catch (Exception e) {
            Log.w(TAG,"Unable to unregister headset receiver",e);
        }
        if (mStateMachine != null) {
            mStateMachine.doQuit();
        }
        return true;
    }