| Index: remoting/webapp/me2mom/client_session.js
|
| diff --git a/remoting/webapp/me2mom/client_session.js b/remoting/webapp/me2mom/client_session.js
|
| index 0dac5a104c927c949fc35148cfd6e68852d7277f..021f14fa5a59a0ea0e775cd55204def8f5eee5ba 100644
|
| --- a/remoting/webapp/me2mom/client_session.js
|
| +++ b/remoting/webapp/me2mom/client_session.js
|
| @@ -213,10 +213,12 @@ remoting.ClientSession.prototype.sendIq_ = function(msg) {
|
|
|
| this.sendIqWithParameters_(parameters);
|
|
|
| - var action = jingleNode.getAttribute('action');
|
| - if (jingleNode.nodeName == 'jingle' && action == 'session-initiate') {
|
| - // The session id is needed in order to close the session later.
|
| - this.sessionId = jingleNode.getAttribute('sid');
|
| + if (jingleNode) {
|
| + var action = jingleNode.getAttribute('action');
|
| + if (jingleNode.nodeName == 'jingle' && action == 'session-initiate') {
|
| + // The session id is needed in order to close the session later.
|
| + this.sessionId = jingleNode.getAttribute('sid');
|
| + }
|
| }
|
| };
|
|
|
|
|