Merge pull request #4211 from BaronGreenback/NullPointerFix

Null Pointer Fix : PlayToController.cs
This commit is contained in:
dkanada 2020-09-28 23:51:24 +09:00 committed by GitHub
commit 206c382b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}