Skip to content

Commit

Permalink
Validate request prior to calculating
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jul 9, 2020
1 parent 109457a commit 08f0113
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -328,6 +328,9 @@ public VFreeBusy(final VFreeBusy request, final List<CalendarComponent> componen
throw new ValidationException("Missing required property", cve);
}

// ensure the request is valid..
request.validate();

final Optional<Duration> duration = request.getProperties().getFirst(DURATION);

// 4.8.2.4 Date/Time Start:
Expand Down

0 comments on commit 08f0113

Please sign in to comment.