1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Blow up if series stats is null

This commit is contained in:
Mark McDowall 2013-07-17 14:59:40 -07:00
parent 13fab38702
commit c3b8b52644

View File

@ -125,8 +125,7 @@ private void MapCoversToLocal(params SeriesResource[] series)
private void LinkSeriesStatistics(SeriesResource resource, List<SeriesStatistics> seriesStatistics)
{
var stats = seriesStatistics.SingleOrDefault(ss => ss.SeriesId == resource.Id);
if (stats == null) return;
var stats = seriesStatistics.Single(ss => ss.SeriesId == resource.Id);
resource.EpisodeCount = stats.EpisodeCount;
resource.EpisodeFileCount = stats.EpisodeFileCount;