mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 06:17:08 -04:00
Handle null for parent name with clean path is empty
This commit is contained in:
parent
95a8f59a32
commit
bd3816dac9
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,11 @@ namespace NzbDrone.Common.Extensions
|
|||
{
|
||||
var cleanPath = childPath.GetCleanPath();
|
||||
|
||||
if (cleanPath.IsNullOrWhiteSpace())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return Directory.GetParent(cleanPath)?.Name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue