Fixes crash in LocalSSRCReplacement when null localDescription is passed.

This commit is contained in:
paweldomas 2015-08-12 12:02:40 +02:00
parent b680ecd2ff
commit 466e7dcc91
1 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,11 @@ var LocalSSRCReplacement = {
if (!isEnabled) if (!isEnabled)
return localDescription; 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 // IF we have local video SSRC stored make sure it is replaced
// with old SSRC // with old SSRC
if (localVideoSSRC) { if (localVideoSSRC) {