null pointer exception

This commit is contained in:
Jared Tabor 2015-11-05 11:17:17 -08:00
parent cc0f78102e
commit d8aff34f63

View File

@ -997,7 +997,7 @@ var tower = angular.module('Tower', [
// gets here on timeout
if (next.templateUrl !== (urlPrefix + 'login/loginBackDrop.partial.html')) {
$rootScope.sessionTimer.expireSession('idle');
if (sock) {
if (sock&& sock.socket && sock.socket.socket) {
sock.socket.socket.disconnect();
}
$location.path('/login');