mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
Enable nullable reference types for MediaBrowser.Controller
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user