Skip to content

Commit bdbfa53

Browse files
committed
Handle nil account info
This will return an empty map if accountInfo is nil or profile is nil
1 parent e49988e commit bdbfa53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/connector/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (u *userBuilder) CreateAccount(
149149
l := ctxzap.Extract(ctx)
150150

151151
// Extract account information from the profile
152-
profile := accountInfo.Profile.AsMap()
152+
profile := accountInfo.GetProfile().AsMap()
153153

154154
// Get required fields
155155
email, ok := profile["email"].(string)

0 commit comments

Comments
 (0)