Commit 52ef285a by Sebastián Katzer

Fix potential crash in intervals method

parent 634255c2
...@@ -290,6 +290,9 @@ ...@@ -290,6 +290,9 @@
switch (every) switch (every)
{ {
case null:
case "":
return TimeSpan.Zero;
case "second": case "second":
return new TimeSpan(TimeSpan.TicksPerSecond); return new TimeSpan(TimeSpan.TicksPerSecond);
case "minute": case "minute":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment