mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04: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 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue