Fix NPE in updateuser code

Fixes https://sentry.io/coreos/frontend-production/issues/364782088/
This commit is contained in:
Joseph Schorr 2017-10-09 14:02:36 -04:00
parent e646afd75b
commit 38748576a1

View file

@ -60,7 +60,7 @@
}; };
$scope.hasPrompt = function(user, prompt_name) { $scope.hasPrompt = function(user, prompt_name) {
if (!user.prompts) { if (!user || !user.prompts) {
return false; return false;
} }