浏览代码

Null pointer fix. (#4527)

Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
BaronGreenback 4 年之前
父节点
当前提交
05bd1383c1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Providers/Plugins/Omdb/OmdbProvider.cs

+ 1 - 1
MediaBrowser.Providers/Plugins/Omdb/OmdbProvider.cs

@@ -114,7 +114,7 @@ namespace MediaBrowser.Providers.Plugins.Omdb
 
             var seasonResult = await GetSeasonRootObject(seriesImdbId, seasonNumber, cancellationToken).ConfigureAwait(false);
 
-            if (seasonResult == null)
+            if (seasonResult?.Episodes == null)
             {
                 return false;
             }