Skip to content

Commit 219ea0b

Browse files
committed
Handle case where cachePath is null or empty
1 parent 5dc8a32 commit 219ea0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dotnet.Script.DependencyModel/ProjectSystem/ScriptProjectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public string GetPathToProjectFile(string targetDirectory, string targetFramewor
142142

143143
public bool IsTempPath(string path)
144144
{
145-
return path.StartsWith(FileUtils.GetTempPath()) || path.StartsWith(_cachePath);
145+
return path.StartsWith(FileUtils.GetTempPath()) || (!string.IsNullOrEmpty(_cachePath) && path.StartsWith(_cachePath));
146146
}
147147
}
148148
}

0 commit comments

Comments
 (0)