Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit ba6aa38

Browse files
committed
Added check for null profile
1 parent d2986c6 commit ba6aa38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SlackConnector/Extensions/UserExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static SlackUser ToSlackUser(this User user)
1111
{
1212
Id = user.Id,
1313
Name = user.Name,
14-
Email = user.Profile.Email,
14+
Email = user.Profile?.Email,
1515
TimeZoneOffset = user.TimeZoneOffset,
1616
IsBot = user.IsBot
1717
};

0 commit comments

Comments
 (0)