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

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

Merge "codec2: BufferPoolClient: fix NPE in fetchBufferHandle if connection is null" into main

parents 08c7c29c 6652cc6a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -748,6 +748,10 @@ BufferPoolStatus BufferPoolClient::Impl::fetchBufferHandle(
    } else {
        connection = mRemoteConnection;
    }
    if (!connection) {
        ALOGE("connection null: fetchBufferHandle()");
        return ResultStatus::CRITICAL_ERROR;
    }
    std::vector<FetchInfo> infos;
    std::vector<FetchResult> results;
    infos.emplace_back(FetchInfo{ToAidl(transactionId), ToAidl(bufferId)});