From b83dfda92cdb85b4c05e941a0c65c2f09c70fb4d Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Sun, 25 Oct 2015 17:29:29 -0700 Subject: [PATCH] fixing a null pointer exception if services are down and user attempts to login --- awx/ui/client/src/login/loginModal/loginModal.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/login/loginModal/loginModal.controller.js b/awx/ui/client/src/login/loginModal/loginModal.controller.js index ce451834b4..48cf162f88 100644 --- a/awx/ui/client/src/login/loginModal/loginModal.controller.js +++ b/awx/ui/client/src/login/loginModal/loginModal.controller.js @@ -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];