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

This commit is contained in:
Treehugger Robot
2024-08-20 20:16:45 +00:00
committed by Gerrit Code Review

View File

@@ -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)});