-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ (Finance) Fixed a bug where Contribution Statement Generator could …
…throw a null reference error when no valid person passed via query string. (Fixes #5705)
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11292c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unlearnd I think that conditional may need to move down a bit. As is, this will show the "Bad Request" error to anyone who is not logged in (CurrentPerson == null) without considering a PersonGuid or Action Identifier in the URL. If it were moved to immediately after this section, then it would allow those URL parameters to be considered while still preventing the NRE from #5705:
Rock/RockWeb/Blocks/Finance/ContributionStatementGenerator.ascx.cs
Lines 137 to 159 in 06a3106
11292c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unlearnd can this be re-opended or fixed with @MichaelAllen 's suggestion?
11292c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right @MichaelAllen ! Really appreciate you catching that! I'll make the modifications in the 16.3 version. Here's what I am expecting the method to look like once amended. If you see anything amiss please don't hesitate to let me know otherwise these changes shouild be in 16.3 within the next day or two.