mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-27 19:14:57 +00:00
Don't blow if driveFormat is null when looking up DriveType
Closes #1444
This commit is contained in:
@@ -14,6 +14,11 @@ namespace NzbDrone.Mono.Disk
|
||||
|
||||
public static DriveType Find(string driveFormat)
|
||||
{
|
||||
if (driveFormat.IsNullOrWhiteSpace())
|
||||
{
|
||||
return DriveType.Unknown;
|
||||
}
|
||||
|
||||
return DriveTypeMap.GetValueOrDefault(driveFormat);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user