Adds null check for the connection when checking whether we have joined a muc.
This commit is contained in:
parent
ababa0fadc
commit
f626c5fbc0
|
@ -576,7 +576,7 @@ var XMPP = {
|
||||||
},
|
},
|
||||||
// Returns true iff we have joined the MUC.
|
// Returns true iff we have joined the MUC.
|
||||||
isMUCJoined: function () {
|
isMUCJoined: function () {
|
||||||
return connection.emuc.joined;
|
return connection === null ? false : connection.emuc.joined;
|
||||||
},
|
},
|
||||||
getSessions: function () {
|
getSessions: function () {
|
||||||
return connection.jingle.sessions;
|
return connection.jingle.sessions;
|
||||||
|
|
Loading…
Reference in New Issue