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

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

Merge "Adding null check for IResourceManagerClient in dump()"

parents 9e2e53d5 aabe014b
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);