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

Commit aabe014b authored by Arun Johnson's avatar Arun Johnson
Browse files

Adding null check for IResourceManagerClient in dump()

bug: 191613308
Change-Id: I1694f2d1c13163a9b8162630377de71303bc517f
parent 9e2e53d5
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -246,10 +246,9 @@ binder_status_t ResourceManagerService::dump(
            snprintf(buffer, SIZE, "        Id: %lld\n", (long long)infos[j].clientId);
            result.append(buffer);

            std::string clientName;
            std::string clientName = "<unknown client>";
            if (infos[j].client != nullptr) {
                Status status = infos[j].client->getName(&clientName);
            if (!status.isOk()) {
                clientName = "<unknown client>";
            }
            snprintf(buffer, SIZE, "        Name: %s\n", clientName.c_str());
            result.append(buffer);