-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Ensure issue.Poster is loaded in mailIssueCommentToParticipants #5891
Ensure issue.Poster is loaded in mailIssueCommentToParticipants #5891
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5891 +/- ##
=======================================
Coverage 38.01% 38.01%
=======================================
Files 328 328
Lines 48328 48328
=======================================
Hits 18370 18370
Misses 27319 27319
Partials 2639 2639
Continue to review full report at Codecov.
|
Previous code could potentially dereference nil - this PR ensures that the poster is loaded before dereferencing it. Signed-off-by: Andrew Thornton <[email protected]>
ac6b7e7
to
be41436
Compare
@adelowo is my change ok? (I really think we need to get this approved quickly and before we release v1.7.1 as every person who is on 1.7 and has ENABLE_NOTIFY_MAIL set to |
…itea#5891) Previous code could potentially dereference nil - this PR ensures that the poster is loaded before dereferencing it. Signed-off-by: Andrew Thornton <[email protected]>
Of course I then rebase and run my magical #5893 on it and notice another dereference bug... The repo needs to be loaded too in v1.7 that is. I'll put the fix in to the backport and open another one on master - which is I think protected by these things being loaded higher up but we should ensure that they're there at this level I think. |
…) (#5894) * Ensure issue.Poster is loaded in mailIssueCommentToParticipants (#5891) Previous code could potentially dereference nil - this PR ensures that the poster is loaded before dereferencing it. Signed-off-by: Andrew Thornton <[email protected]> * Also ensure the repo is loaded Signed-off-by: Andrew Thornton <[email protected]>
Previous code could potentially dereference nil - this PR ensures
that the poster is loaded before dereferencing it.
Fixes issue reported on Discord by drewG
Signed-off-by: Andrew Thornton [email protected]