From a42d90f22c54f372428f0e1c7e2fa5e8229f6aec Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 25 Jun 2012 21:58:21 -0700 Subject: [PATCH] Prevent error for MinOrDefault. Fixed: Issue with episode searching --- NzbDrone.Core/Fluent.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NzbDrone.Core/Fluent.cs b/NzbDrone.Core/Fluent.cs index 618c47983..8ce8d870a 100644 --- a/NzbDrone.Core/Fluent.cs +++ b/NzbDrone.Core/Fluent.cs @@ -145,6 +145,9 @@ namespace NzbDrone.Core public static int MinOrDefault(this IEnumerable ints) { + if (ints == null) + return 0; + var intsList = ints.ToList(); if (!intsList.Any())