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

Commit 617b7519 authored by Lianchao Song's avatar Lianchao Song Committed by Zheng Zhang
Browse files

Add missing null pointer check inside HeadSetClientService.stop()



Bug: 28664857

Change-Id: I62abc4eb4127db2d4f0cde44eca618996f099b49
Signed-off-by: default avatarLianchao Song <songlianchao@huawei.com>
cherry-picked from AOSP bebc4dd9
parent 3ff96196
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -90,7 +90,9 @@ public class HeadsetClientService extends ProfileService {
        } catch (Exception e) {
            Log.w(TAG, "Unable to unregister broadcast receiver", e);
        }
        if (mStateMachine != null) {
            mStateMachine.doQuit();
        }

        // Stop the HfpClientConnectionService.
        Intent stopIntent = new Intent(this, HfpClientConnectionService.class);