Navigation Menu

Skip to content

Commit

Permalink
Fixed: ArgumentException on Import List Root Folder Check
Browse files Browse the repository at this point in the history
  • Loading branch information
Qstick committed May 24, 2021
1 parent 05f9f6b commit 3e7c136
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Common.Disk;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.ImportLists;
using NzbDrone.Core.Localization;
using NzbDrone.Core.MediaFiles.Events;
Expand Down Expand Up @@ -39,7 +40,7 @@ public override HealthCheck Check()
continue;
}

if (!_diskProvider.FolderExists(rootFolderPath))
if (rootFolderPath.IsNullOrWhiteSpace() || !_diskProvider.FolderExists(rootFolderPath))
{
missingRootFolders.Add(rootFolderPath, new List<ImportListDefinition> { importList });
}
Expand Down

0 comments on commit 3e7c136

Please sign in to comment.