Explorar o código

Fix potential crash in intervals method

Sebastián Katzer %!s(int64=8) %!d(string=hai) anos
pai
achega
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":