mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-27 23:30:49 +02:00
Prevent NullRef in IsPathValid for null paths
This commit is contained in:
parent
e66ecf5c95
commit
03fa9254e3
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ public static bool IsParentPath(this string parentPath, string childPath)
|
|||
|
||||
public static bool IsPathValid(this string path, PathValidationType validationType)
|
||||
{
|
||||
if (path.ContainsInvalidPathChars() || string.IsNullOrWhiteSpace(path))
|
||||
if (string.IsNullOrWhiteSpace(path) || path.ContainsInvalidPathChars())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue