mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
fixing a null pointer exception if services are down and user attempts to login
This commit is contained in:
parent
e18791a657
commit
b83dfda92c
@ -193,7 +193,7 @@ export default ['$log', '$cookieStore', '$compile', '$window', '$rootScope', '$l
|
||||
function (data) {
|
||||
var key;
|
||||
Wait('stop');
|
||||
if (data.data.non_field_errors && data.data.non_field_errors.length === 0) {
|
||||
if (data && data.data && data.data.non_field_errors && data.data.non_field_errors.length === 0) {
|
||||
// show field specific errors returned by the API
|
||||
for (key in data.data) {
|
||||
scope[key + 'Error'] = data.data[key][0];
|
||||
|
Loading…
Reference in New Issue
Block a user