From 466e7dcc914d59ce954d57f9bd6fab904789ca4b Mon Sep 17 00:00:00 2001 From: paweldomas Date: Wed, 12 Aug 2015 12:02:40 +0200 Subject: [PATCH] Fixes crash in LocalSSRCReplacement when null localDescription is passed. --- modules/xmpp/LocalSSRCReplacement.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/xmpp/LocalSSRCReplacement.js b/modules/xmpp/LocalSSRCReplacement.js index 0ee0459b2..0b8e65cff 100644 --- a/modules/xmpp/LocalSSRCReplacement.js +++ b/modules/xmpp/LocalSSRCReplacement.js @@ -168,6 +168,11 @@ var LocalSSRCReplacement = { if (!isEnabled) return localDescription; + if (!localDescription) { + console.warn("localDescription is null or undefined"); + return localDescription; + } + // IF we have local video SSRC stored make sure it is replaced // with old SSRC if (localVideoSSRC) {