diff --git a/modules/xmpp/xmpp.js b/modules/xmpp/xmpp.js index 5b7abcfc8..ba8111562 100644 --- a/modules/xmpp/xmpp.js +++ b/modules/xmpp/xmpp.js @@ -576,7 +576,7 @@ var XMPP = { }, // Returns true iff we have joined the MUC. isMUCJoined: function () { - return connection.emuc.joined; + return connection === null ? false : connection.emuc.joined; }, getSessions: function () { return connection.jingle.sessions;