mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04: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)
|
public static DriveType Find(string driveFormat)
|
||||||
{
|
{
|
||||||
|
if (driveFormat.IsNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
return DriveType.Unknown;
|
||||||
|
}
|
||||||
|
|
||||||
return DriveTypeMap.GetValueOrDefault(driveFormat);
|
return DriveTypeMap.GetValueOrDefault(driveFormat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user