Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure repo is loaded in mailer (Completely fix #5891) #5895
Although it appears that the master branch is currently protected against the nil dereference bug referred to in #5891 - looking closer at the functions this calls these expect that the repo is loaded in the issue, which may not be available.
This fix ensures that the repo is loaded before calling these methods meaning that any future changes will be protected against a nil dereference. (We should probably also "MustRepo" in those downstream functions - however, injudicious use could cause deadlocks.)
Signed-off-by: Andrew Thornton email@example.com
@@ Coverage Diff @@ ## master #5895 +/- ## ======================================== Coverage ? 38% ======================================== Files ? 328 Lines ? 48331 Branches ? 0 ======================================== Hits ? 18370 Misses ? 27322 Partials ? 2639