Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't throw NullReferenceException when inviting guest users to project #1077

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

rmunn
Copy link
Contributor

@rmunn rmunn commented Sep 26, 2024

Fix #1044.

Guest users don't have email addresses, but they can be invited to projects. So when sending the "You've been invited to project X" email, if the user doesn't have an email address, that's not an error that should cause an exception to be thrown. It just means that that user is a guest user without an email, so we should just skip emailing them.

Guest users don't have email addresses, but they can be invited to
projects. So when sending the "You've been invited to project X" email,
if the user doesn't have an email address, that's not an error that
should cause an exception to be thrown. It just means that that user is
a guest user without an email, so we should just skip emailing them.
@rmunn rmunn requested a review from myieye September 26, 2024 08:08
Copy link

C# Unit Tests

66 tests   66 ✅  5s ⏱️
11 suites   0 💤
 1 files     0 ❌

Results for commit 1648df3.

@rmunn rmunn self-assigned this Sep 26, 2024
Copy link
Contributor

@myieye myieye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch 👍

@rmunn rmunn merged commit 634bb92 into develop Sep 27, 2024
8 checks passed
@rmunn rmunn deleted the bug/dont-throw-inviting-guest-users-to-project branch September 27, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.ArgumentNullException: Value cannot be null. (Parameter 'emailAddress')
2 participants