mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Prevent NullRef in IsPathValid for null paths
This commit is contained in:
@@ -138,7 +138,7 @@ namespace NzbDrone.Common.Extensions
|
|||||||
|
|
||||||
public static bool IsPathValid(this string path, PathValidationType validationType)
|
public static bool IsPathValid(this string path, PathValidationType validationType)
|
||||||
{
|
{
|
||||||
if (path.ContainsInvalidPathChars() || string.IsNullOrWhiteSpace(path))
|
if (string.IsNullOrWhiteSpace(path) || path.ContainsInvalidPathChars())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user