summaryrefslogtreecommitdiffstats
path: root/remoting/webapp
diff options
context:
space:
mode:
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 22:45:57 +0000
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 22:45:57 +0000
commitd68070cb58aba4339fc1353fe23cd8afb7dd44dc (patch)
tree0d6d690ddb8580cb7fe0af8fa265644f190f2805 /remoting/webapp
parent17ced80f14fa1e5df090737bada45786bf62115c (diff)
downloadchromium_src-d68070cb58aba4339fc1353fe23cd8afb7dd44dc.zip
chromium_src-d68070cb58aba4339fc1353fe23cd8afb7dd44dc.tar.gz
chromium_src-d68070cb58aba4339fc1353fe23cd8afb7dd44dc.tar.bz2
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
Diffstat (limited to 'remoting/webapp')
-rw-r--r--remoting/webapp/me2mom/client_session.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/remoting/webapp/me2mom/client_session.js b/remoting/webapp/me2mom/client_session.js
index 0dac5a1..021f14f 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');
+ }
}
};