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

Commit b84f0236 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 9ba48e45
parent ba4926c8
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);