Skip to content

Commit 9c1622d

Browse files
committed
Fix the path null issue
1 parent cf9827a commit 9c1622d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/FileSystem/WindowsFileSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public override IEnumerable<string> EnumerateFileSystemEntries(string path, stri
5555

5656
public override bool DirectoryExists(string path)
5757
{
58-
if (FileUtilities.IsPathTooLong(path))
58+
if (!string.IsNullOrEmpty(path) && FileUtilities.IsPathTooLong(path))
5959
{
6060
// If the path is too long, we can't check if it exists on windows
6161
string message = ResourceUtilities.FormatString(AssemblyResources.GetString("Shared.PathTooLong"), path, NativeMethodsShared.MaxPath);

0 commit comments

Comments
 (0)