Don't die when trying to open file with nullable path

Closes #3012
This commit is contained in:
Bogdan
2023-10-19 17:35:23 +03:00
parent a3ae2359f5
commit e188c9aac0

View File

@@ -275,7 +275,7 @@ namespace NzbDrone.Core.Books.Calibre
var updatedPath = GetOriginalFormat(updated.Formats);
if (updatedPath != file.Path)
if (updatedPath != null && updatedPath != file.Path)
{
_rootFolderWatchingService.ReportFileSystemChangeBeginning(updatedPath);
file.Path = updatedPath;