OSDN Git Service

Fix adv instance validity check during suspend and resume of resolving list
authorSubramanian Srinivasan <subrsrin@codeaurora.org>
Fri, 29 Sep 2017 01:41:03 +0000 (18:41 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 3 Oct 2017 17:37:45 +0000 (17:37 +0000)
commit2e08795a899d402dd9914c3e5098c04dccd4f680
tree22344f2e987f61da607cb358ac105f4446869af2
parent5af6abaf2e973072747c3c6588ae61183cb000a8
Fix adv instance validity check during suspend and resume of resolving list

When BT is shutdown, multi advertisement instance pointer is made
null by BleAdvertisingManager::CleanUp function.
Any subsequent BleAdvertisingManager::Get function call made at
this point(eg during suspension and resumption of resolving list
activity)leads to a crash as the instance pointer is null.
Hence, use BleAdvertisingManager::IsInitialized function instead
of BleAdvertisingManager::Get function to check the validity of
multi advertisement instance.

Bug: 67325491
Change-Id: Ibbae7fa546bb52494be78eaff6d4b7b15614ab15
stack/btm/btm_ble_privacy.cc