Parcourir la source

Fix potential crash in intervals method

Sebastián Katzer il y a 8 ans
Parent
commit
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":