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

Commit d31c8c6d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Add nullptr guard to make static analyzer happy am: 09938711 am: c2a0aa1a

Change-Id: Ib6e17569be0ebb26599dcff5611bc9835d79ef90
parents b60b2ffe c2a0aa1a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2414,6 +2414,11 @@ bt_status_t btif_dm_pin_reply(const RawAddress* bd_addr, uint8_t accept,
  BTIF_TRACE_EVENT("%s: accept=%d", __func__, accept);

  if (bluetooth::shim::is_gd_shim_enabled()) {
    if (pin_code == nullptr) {
      LOG_ERROR("Pin code must be not null with GD shim enabled");
      return BT_STATUS_FAIL;
    }

    uint8_t tmp_dev_type = 0;
    uint8_t tmp_addr_type = 0;
    BTM_ReadDevInfo(*bd_addr, &tmp_dev_type, &tmp_addr_type);