Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1547)

Unified Diff: remoting/webapp/me2mom/client_session.js

Issue 7578009: Don't examine jingleNode unless it's non-null. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
+ }
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698