diff --git a/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp b/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp index 0490855aca8ee..c588de1f97b52 100644 --- a/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp +++ b/media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp @@ -1446,7 +1446,9 @@ nsresult JsepSessionImpl::UpdateTransceiversFromRemoteDescription( } if (!mSdpHelper.MsectionIsDisabled(msection)) { - transceiver->Associate(msection.GetAttributeList().GetMid()); + if (msection.GetAttributeList().HasAttribute(SdpAttribute::kMidAttribute)) { + transceiver->Associate(msection.GetAttributeList().GetMid()); + } if (!transceiver->IsAssociated()) { transceiver->Associate(GetNewMid()); } else {