diff --git a/services/audiotransport/receiverengine/src/av_receiver_engine_transport.cpp b/services/audiotransport/receiverengine/src/av_receiver_engine_transport.cpp index 6849ae299e34a9e4df69a539c483daa430328f65..f5ab6aa187346774d2beac4972512fbda2b7dc68 100644 --- a/services/audiotransport/receiverengine/src/av_receiver_engine_transport.cpp +++ b/services/audiotransport/receiverengine/src/av_receiver_engine_transport.cpp @@ -129,6 +129,7 @@ void AVTransReceiverTransport::OnEngineDataAvailable(const std::shared_ptrGetBufferData(0); + CHECK_NULL_VOID(bufferData); std::shared_ptr audioData = std::make_shared(bufferData->GetSize()); int32_t ret = memcpy_s(audioData->Data(), audioData->Capacity(), bufferData->GetAddress(), bufferData->GetSize()); if (ret != EOK) {