Explorar el Código

Adds null check for the connection when checking whether we have joined a muc.

master
damencho hace 10 años
padre
commit
f626c5fbc0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
modules/xmpp/xmpp.js Ver fichero

@@ -576,7 +576,7 @@ var XMPP = {
576 576
     },
577 577
     // Returns true iff we have joined the MUC.
578 578
     isMUCJoined: function () {
579
-        return connection.emuc.joined;
579
+        return connection === null ? false : connection.emuc.joined;
580 580
     },
581 581
     getSessions: function () {
582 582
         return connection.jingle.sessions;

Loading…
Cancelar
Guardar