1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

fix console error with rest interceptor

null pointer exception fixed
This commit is contained in:
Jared Tabor 2015-10-27 21:09:12 -07:00
parent 12d31c5099
commit 65d44287df

View File

@ -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);
}