mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
Convert NullReferenceException to ResourceNotFoundException
This commit is contained in:
@@ -8,6 +8,7 @@ using Jellyfin.Api.Attributes;
|
||||
using Jellyfin.Api.Constants;
|
||||
using Jellyfin.Api.Helpers;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Common.Extensions;
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
using MediaBrowser.Controller.MediaEncoding;
|
||||
using MediaBrowser.Model.IO;
|
||||
@@ -138,7 +139,7 @@ namespace Jellyfin.Api.Controllers
|
||||
|
||||
if (playlistPath == null)
|
||||
{
|
||||
throw new NullReferenceException(nameof(playlistPath));
|
||||
throw new ResourceNotFoundException(nameof(playlistPath));
|
||||
}
|
||||
|
||||
return GetFileResult(file, playlistPath);
|
||||
|
||||
Reference in New Issue
Block a user