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

Commit 6b9a0338 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add null check in AVRCP dumpsys" am: 3213a372

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1888639

Change-Id: Ia1d6d706252989e985dd1815c6ac1374910194e0
parents 9dfc53b3 3213a372
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -526,7 +526,13 @@ void AvrcpService::DebugDump(int fd) {
    return;
  }

  auto device_list = instance_->connection_handler_->GetListOfDevices();
  auto handler = instance_->connection_handler_;
  if (handler == nullptr) {
    dprintf(fd, "\nAVRCP connection handler is null\n");
    return;
  }

  auto device_list = handler->GetListOfDevices();
  dprintf(fd, "\nAVRCP Target Native Service: %zu devices\n",
          device_list.size());