BroadcastTheNet: fix error on no results

This commit is contained in:
kaso17 2017-08-22 18:58:56 +02:00 committed by kaso17
parent 3354d37aa3
commit 8e1d321817
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ namespace Jackett.Indexers
{
var btnResponse = JsonConvert.DeserializeObject<BTNRPCResponse>(response.Content);
if (btnResponse != null && btnResponse.Result != null)
if (btnResponse != null && btnResponse.Result != null && btnResponse.Result.Torrents != null)
{
foreach (var itemKey in btnResponse.Result.Torrents)
{