diff --git a/src/NzbDrone.Mono/Disk/FindDriveType.cs b/src/NzbDrone.Mono/Disk/FindDriveType.cs index 3125469d0..80f4ab252 100644 --- a/src/NzbDrone.Mono/Disk/FindDriveType.cs +++ b/src/NzbDrone.Mono/Disk/FindDriveType.cs @@ -14,6 +14,11 @@ public static class FindDriveType public static DriveType Find(string driveFormat) { + if (driveFormat.IsNullOrWhiteSpace()) + { + return DriveType.Unknown; + } + return DriveTypeMap.GetValueOrDefault(driveFormat); } }