浏览代码

Fix potential crash in intervals method

Sebastián Katzer 8 年之前
父节点
当前提交
52ef285a93

+ 3 - 0
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Notification.cs

@@ -290,6 +290,9 @@
 
                 switch (every)
                 {
+                    case null:
+                    case "":
+                        return TimeSpan.Zero;
                     case "second":
                         return new TimeSpan(TimeSpan.TicksPerSecond);
                     case "minute":