mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
Fix nullability errors in Jellyfin.Api (part 1)
This commit is contained in:
@@ -136,6 +136,11 @@ namespace Jellyfin.Api.Controllers
|
||||
string.Equals(Path.GetExtension(i), ".m3u8", StringComparison.OrdinalIgnoreCase)
|
||||
&& i.IndexOf(normalizedPlaylistId, StringComparison.OrdinalIgnoreCase) != -1);
|
||||
|
||||
if (playlistPath == null)
|
||||
{
|
||||
throw new NullReferenceException(nameof(playlistPath));
|
||||
}
|
||||
|
||||
return GetFileResult(file, playlistPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user