diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-05-07 00:39:20 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-05-07 00:39:20 +0200 |
| commit | fb090df0b59b71d7f143d2181d46f18943bbc35e (patch) | |
| tree | cba62fbdc12347dadd93358ef2bd743b8f717dfd /Jellyfin.Api/Controllers/LibraryController.cs | |
| parent | a4a3f598af92c7e62a920c4a2eb4f89081c13648 (diff) | |
Enable nullable reference types for MediaBrowser.Controller
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LibraryController.cs | 2 |
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(); |
