Bläddra i källkod

Fixes crash in LocalSSRCReplacement when null localDescription is passed.

master
paweldomas 10 år sedan
förälder
incheckning
466e7dcc91
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5
    0
      modules/xmpp/LocalSSRCReplacement.js

+ 5
- 0
modules/xmpp/LocalSSRCReplacement.js Visa fil

168
         if (!isEnabled)
168
         if (!isEnabled)
169
             return localDescription;
169
             return localDescription;
170
 
170
 
171
+        if (!localDescription) {
172
+            console.warn("localDescription is null or undefined");
173
+            return localDescription;
174
+        }
175
+
171
         // IF we have local video SSRC stored make sure it is replaced
176
         // IF we have local video SSRC stored make sure it is replaced
172
         // with old SSRC
177
         // with old SSRC
173
         if (localVideoSSRC) {
178
         if (localVideoSSRC) {

Laddar…
Avbryt
Spara