Enable nullable reference types for MediaBrowser.Controller

This commit is contained in:
Bond_009
2021-05-07 00:39:20 +02:00
parent a4a3f598af
commit fb090df0b5
215 changed files with 406 additions and 44 deletions

View File

@@ -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();