aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-05-07 14:09:12 +0200
committerGitHub <noreply@github.com>2021-05-07 14:09:12 +0200
commita3c9edde347122437e988aac9eb5dacb08f0c345 (patch)
tree7152a38c3fd4ffdfa8d39ca2c1a28d01113f43b7 /Jellyfin.Api/Controllers/LibraryController.cs
parenta4a3f598af92c7e62a920c4a2eb4f89081c13648 (diff)
parent4367b97a54f31233e242ef1afe6714b934ecf4d9 (diff)
Merge pull request #6000 from Bond-009/nullable2
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();