1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Don't blow if driveFormat is null when looking up DriveType

Closes #1444
This commit is contained in:
Mark McDowall 2016-08-30 22:23:49 -07:00
parent 2d54ca5d47
commit 6ac9e5ec18

View File

@ -14,6 +14,11 @@ public static class FindDriveType
public static DriveType Find(string driveFormat)
{
if (driveFormat.IsNullOrWhiteSpace())
{
return DriveType.Unknown;
}
return DriveTypeMap.GetValueOrDefault(driveFormat);
}
}