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

Commit 5d3c67df authored by Chris Manton's avatar Chris Manton
Browse files

Check for nullptr on av_source dumpsys

Bug: 227136187
Tag: #refactor
Test: gd/cert/run
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I0b97e8efff55c001b319809605404d7faef6a2d8
parent be4fa976
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3469,9 +3469,11 @@ static void btif_debug_av_source_dump(int fd) {
          btif_av_source.ActivePeer().ToString().c_str());
  for (auto it : btif_av_source.Peers()) {
    const BtifAvPeer* peer = it.second;
    if (peer != nullptr) {
      btif_debug_av_peer_dump(fd, *peer);
    }
  }
}

static void btif_debug_av_sink_dump(int fd) {
  bool enabled = btif_av_sink.Enabled();