Fix NPE in updateuser code
Fixes https://sentry.io/coreos/frontend-production/issues/364782088/
This commit is contained in:
parent
e646afd75b
commit
38748576a1
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
|||
};
|
||||
|
||||
$scope.hasPrompt = function(user, prompt_name) {
|
||||
if (!user.prompts) {
|
||||
if (!user || !user.prompts) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue