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

@@ -42,6 +42,10 @@ namespace MediaBrowser.LocalMetadata.Images
public IEnumerable<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
{
var parentPath = Path.GetDirectoryName(item.Path);
if (parentPath == null)
{
return Enumerable.Empty<LocalImageInfo>();
}
var parentPathFiles = directoryService.GetFiles(parentPath);