Don't examine jingleNode unless it's non-null.

BUG=None
TEST=Manual


Review URL: http://codereview.chromium.org/7578009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95526 0039d316-1c4b-4281-b951-d872f2087c98
parent 17ced80f
......@@ -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');
}
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment