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

Commit 587e414f authored by Chienyuan's avatar Chienyuan
Browse files

Check for null security device list

Bug: 220733070
Tag: #refactor
Test: gd/cert/run
Change-Id: I4babd8dac288525e19430ad670ea17388b97dfd0
parent 1e33487f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@ static bool btm_ble_match_random_bda(void* data, void* context) {
 * matched to.
 */
tBTM_SEC_DEV_REC* btm_ble_resolve_random_addr(const RawAddress& random_bda) {
  if (btm_cb.sec_dev_rec == nullptr) return nullptr;
  list_node_t* n = list_foreach(btm_cb.sec_dev_rec, btm_ble_match_random_bda,
                                (void*)&random_bda);
  return (n == nullptr) ? (nullptr)