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

Closes #1444
pull/4/head
Mark McDowall 8 years ago
parent 2d54ca5d47
commit 6ac9e5ec18

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

Loading…
Cancel
Save