aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-05-07 00:39:20 +0200
committerBond_009 <bond.009@outlook.com>2021-05-07 00:39:20 +0200
commitfb090df0b59b71d7f143d2181d46f18943bbc35e (patch)
treecba62fbdc12347dadd93358ef2bd743b8f717dfd /Jellyfin.Api/Controllers/LibraryController.cs
parenta4a3f598af92c7e62a920c4a2eb4f89081c13648 (diff)
Enable nullable reference types for MediaBrowser.Controller
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index 1d4bbe61e..4ed15e1d5 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -600,7 +600,7 @@ namespace Jellyfin.Api.Controllers
{
foreach (var item in dto.Updates)
{
- _libraryMonitor.ReportFileSystemChanged(item.Path);
+ _libraryMonitor.ReportFileSystemChanged(item.Path ?? throw new ArgumentException("Item path can't be null."));
}
return NoContent();