From 65d44287df9bef017a4ace3c48656cce8223923a Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 27 Oct 2015 21:09:12 -0700 Subject: [PATCH] fix console error with rest interceptor null pointer exception fixed --- awx/ui/client/src/rest/interceptors.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/rest/interceptors.service.js b/awx/ui/client/src/rest/interceptors.service.js index 5ef77a40f4..81bf24a658 100644 --- a/awx/ui/client/src/rest/interceptors.service.js +++ b/awx/ui/client/src/rest/interceptors.service.js @@ -21,7 +21,7 @@ return config; }, responseError: function(rejection){ - if( rejection.data && !_.isEmpty(rejection.data.detail) && rejection.data.detail === "Maximum per-user sessions reached"){ + if(rejection && rejection.data && rejection.data.detail && rejection.data.detail === "Maximum per-user sessions reached"){ $rootScope.sessionTimer.expireSession('session_limit'); return $q.reject(rejection); }