From d44de777c1f77628981afdf2e2b2c2b9cc527248 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 20 Aug 2017 20:13:42 +0200 Subject: [PATCH] Fixed: Error with CP Import when no info is present. Fixes #1792 --- src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoParser.cs b/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoParser.cs index 12a136a4f..d71dcf2ba 100644 --- a/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoParser.cs +++ b/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoParser.cs @@ -43,7 +43,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato foreach (var item in responseData) { - int tmdbid = item.info.tmdb_id ?? 0; + int tmdbid = item.info?.tmdb_id ?? 0; // Fix weird error reported by Madmanali93 if (item.type != null && item.releases != null)