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

Protect the report operation from bad measurement period interval par… #342

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

rob-reynolds
Copy link

…ameters

@@ -555,6 +555,10 @@ public Parameters report(@OperationParam(name = "periodStart", min = 1, max = 1)
Date periodStartDate = DateHelper.resolveRequestDate(periodStart, true);
Date periodEndDate = DateHelper.resolveRequestDate(periodEnd, false);

if (periodStartDate.after(periodEndDate)) {
Copy link
Member

Choose a reason for hiding this comment

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

Are these guaranteed not null by the resolveRequestDate call? If not, suggest a check

@rob-reynolds rob-reynolds merged commit 11eeca6 into master Sep 15, 2021
@rob-reynolds rob-reynolds deleted the feature-protect-report-measurement-period branch September 15, 2021 02:37
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.

None yet

2 participants