From 4049a2cfa4c10194aaf6f51614f5d6d2f53982b7 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 14 Oct 2015 18:18:41 -0400 Subject: [PATCH] fixed console error --- awx/ui/client/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index 63efa9c54e..066bd57269 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -992,7 +992,7 @@ var tower = angular.module('Tower', [ if (next.templateUrl !== (urlPrefix + 'login/loginBackDrop.partial.html')) { $location.path('/login'); } - } else if ($rootScope.sessionTimer.isExpired()) { + } else if ($rootScope && $rootScope.sessionTimer && $rootScope.sessionTimer.isExpired()) { // gets here on timeout if (next.templateUrl !== (urlPrefix + 'login/loginBackDrop.partial.html')) { $rootScope.sessionTimer.expireSession('idle');