From 44072a4d6b68bbcc46c8f04deb0dc24d15768924 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 23 Oct 2012 08:18:28 -0700 Subject: [PATCH] Fixed issue with deleting series --- NzbDrone.Core/Jobs/DeleteSeriesJob.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/Jobs/DeleteSeriesJob.cs b/NzbDrone.Core/Jobs/DeleteSeriesJob.cs index 5ef69d3ae..07b79b6a9 100644 --- a/NzbDrone.Core/Jobs/DeleteSeriesJob.cs +++ b/NzbDrone.Core/Jobs/DeleteSeriesJob.cs @@ -34,7 +34,13 @@ namespace NzbDrone.Core.Jobs public void Start(ProgressNotification notification, dynamic options) { - DeleteSeries(notification, options.SeriesId, options.DeleteFiless); + if (options == null) + throw new ArgumentNullException("options"); + + if (options.SeriesId == 0) + throw new ArgumentNullException("options.SeriesId"); + + DeleteSeries(notification, options.SeriesId, options.DeleteFiles); } private void DeleteSeries(ProgressNotification notification, int seriesId, bool deleteFiles)