Handle null for parent name with clean path is empty

(cherry picked from commit bd3816dac9b540d2f95960a254bb21ab3c91421e)
pull/8745/head
Mark McDowall 2 years ago committed by Bogdan
parent 77cde138dc
commit 7e218a886d

@ -101,6 +101,11 @@ namespace NzbDrone.Common.Extensions
{
var cleanPath = childPath.GetCleanPath();
if (cleanPath.IsNullOrWhiteSpace())
{
return null;
}
return Directory.GetParent(cleanPath)?.Name;
}

Loading…
Cancel
Save