From f626c5fbc0fa9e6088f9a4017c34f0e9c147f185 Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 29 Sep 2015 11:55:39 -0500 Subject: [PATCH] Adds null check for the connection when checking whether we have joined a muc. --- modules/xmpp/xmpp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;