summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-02-15 17:18:17 +0100
committerFrancisco Javier López <fjlopez@gitlab.com>2018-02-15 17:18:17 +0100
commita7ac45809f1f3ccaa1a2b124f2532d8684931c6c (patch)
tree72a433ad350510d1c7c82b586e181cb9b7c9cc73
parent15b63e15eda5f69d0f918d8df44bf614a14b3cda (diff)
downloadgitlab-ce-fj-fixed-bug-17054.tar.gz
Fixed bug with the user synced attributes when the user doesn't existfj-fixed-bug-17054
-rw-r--r--lib/gitlab/o_auth/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/o_auth/user.rb b/lib/gitlab/o_auth/user.rb
index ed5ab7b174d..28ebac1776e 100644
--- a/lib/gitlab/o_auth/user.rb
+++ b/lib/gitlab/o_auth/user.rb
@@ -224,7 +224,7 @@ module Gitlab
end
def clear_user_synced_attributes_metadata
- gl_user.user_synced_attributes_metadata&.destroy
+ gl_user&.user_synced_attributes_metadata&.destroy
end
def log