commit | 05f3851efe2d7ceccbdb994a01ab3663114df0c4 | [log] [tgz] |
---|---|---|
author | Satish Kodishala <skodisha@codeaurora.org> | Thu Jul 18 18:18:20 2019 +0530 |
committer | Satish Kodishala <skodisha@codeaurora.org> | Thu Jul 18 18:26:56 2019 +0530 |
tree | 4da3000b0c9c2642299ac1bcb7f813ced3c6983d | |
parent | d3ceb5f4503e610062eab248a89bfd1da2980c54 [diff] |
HFP: AG: Add null check for AdapterService When BT is turned off, mAdapterService will be set to null. At the same time, if a headset gets disconnected, mAdapterService is dereferenced without null check to send disconnected intent. Add the null check for mAdapterService while getting the bonded devices. CRs-Fixed: 2486935 Change-Id: Id8dbcbabe4faeb8fcf3cbf31573422da38cb03a2