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

Commit 3213a372 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add null check in AVRCP dumpsys"

parents a886fd86 0ffe5a20
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());