jamorin / Sonarr.bundle

A Sonarr channel plugin for the Plex Media Server.
95 stars 14 forks source link

Error when searching for episode #8

Open Lazymondaysunday opened 8 years ago

Lazymondaysunday commented 8 years ago

When I try to do an automatic search for an episode I get this error in sonarr.

Message: Error occurred while executing task EpisodeSearch: Object reference not set to an instance of an object

Exception `System.NullReferenceException: Object reference not set to an instance of an object at NzbDrone.Core.IndexerSearch.EpisodeSearchService.Execute (NzbDrone.Core.IndexerSearch.EpisodeSearchCommand message) <0x411875a0 + 0x00045> in <filename unknown>:0 at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand] (NzbDrone.Core.Messaging.Commands.TCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x0008a] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:77

Royal2000H commented 8 years ago

I submitted a pull request (#9) with the fix for this problem. Until the issue is merged on this project, it's a very easy fix you can do yourself on your own installation, just look at the file I changed.