Skip to content

Commit ccb73a7

Browse files
committed
Added empty collection validation on At().
1 parent f3409b7 commit ccb73a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

FluentScheduler/Fluent/3.Duration/PeriodOnceSet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public void At(int hour, int minute)
3131
/// <param name="timeCollection">Time of day.</param>
3232
public void At(params TimeSpan[] timeCollection)
3333
{
34+
ThrowHelper.ThrowIfEmpty(timeCollection);
3435
ThrowHelper.ThrowIfOutOfMilitaryTimeRange(timeCollection);
3536

3637
foreach (var time in timeCollection)

0 commit comments

Comments
 (0)