Browse Source

Merge pull request #4211 from BaronGreenback/NullPointerFix

Null Pointer Fix : PlayToController.cs
dkanada 4 years ago
parent
commit
206c382b92
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Emby.Dlna/PlayTo/PlayToController.cs

+ 4 - 1
Emby.Dlna/PlayTo/PlayToController.cs

@@ -881,7 +881,10 @@ namespace Emby.Dlna.PlayTo
                     return null;
                 }
 
-                mediaSource = await _mediaSourceManager.GetMediaSource(Item, MediaSourceId, LiveStreamId, false, cancellationToken).ConfigureAwait(false);
+                if (_mediaSourceManager != null)
+                {
+                    mediaSource = await _mediaSourceManager.GetMediaSource(Item, MediaSourceId, LiveStreamId, false, cancellationToken).ConfigureAwait(false);
+                }
 
                 return mediaSource;
             }