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

Commit 9ba48e45 authored by Lianchao Song's avatar Lianchao Song Committed by Chenjie Luo
Browse files

Add missing null pointer check inside HeadSetClientService.stop()



Bug: 28664857

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