Index: remoting/webapp/toolbar.js |
diff --git a/remoting/webapp/toolbar.js b/remoting/webapp/toolbar.js |
index 32dfdf69adccb74ba2c78d7bd9b0866a4b0a870f..cec9a0f8fcc90cc5455a56527fd1d3271ad08370 100644 |
--- a/remoting/webapp/toolbar.js |
+++ b/remoting/webapp/toolbar.js |
@@ -121,7 +121,8 @@ remoting.Toolbar.prototype.toggle = function() { |
remoting.Toolbar.prototype.setClientSession = function(clientSession) { |
this.optionsMenu_.setClientSession(clientSession); |
var connectedTo = document.getElementById('connected-to'); |
- connectedTo.innerText = clientSession.getHostDisplayName(); |
+ connectedTo.innerText = |
+ clientSession ? clientSession.getHostDisplayName() : ""; |
}; |
/** |