diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-09-28 23:51:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-28 23:51:24 +0900 |
| commit | 206c382b92d8139efbe18da8786b46f9aa2e632e (patch) | |
| tree | 41b92db27d1eeb2c6f9f5086d82761c79a8a6754 | |
| parent | 1bf527f8b43584c162598a43107a4a3b547e7c5e (diff) | |
| parent | a9864368c46c3a8c934216052c10c18cbb7d4bdc (diff) | |
Merge pull request #4211 from BaronGreenback/NullPointerFix
Null Pointer Fix : PlayToController.cs
| -rw-r--r-- | Emby.Dlna/PlayTo/PlayToController.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Dlna/PlayTo/PlayToController.cs b/Emby.Dlna/PlayTo/PlayToController.cs index 460ac2d8d..63fd8ce5a 100644 --- a/Emby.Dlna/PlayTo/PlayToController.cs +++ b/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; } |
