Skip to content

Commit

Permalink
Don't die when trying to open file with nullable path
Browse files Browse the repository at this point in the history
Closes #3012
  • Loading branch information
mynameisbogdan committed Oct 19, 2023
1 parent a3ae235 commit e188c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NzbDrone.Core/Books/Calibre/CalibreProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public void SetFields(BookFile file, CalibreSettings settings, bool updateCover

var updatedPath = GetOriginalFormat(updated.Formats);

if (updatedPath != file.Path)
if (updatedPath != null && updatedPath != file.Path)
{
_rootFolderWatchingService.ReportFileSystemChangeBeginning(updatedPath);
file.Path = updatedPath;
Expand Down

0 comments on commit e188c9a

Please sign in to comment.