ソースを参照

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":