File tree Expand file tree Collapse file tree
src/Runner.Worker/Handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ public string ResolvePathForStepHost(string path)
110110
111111 // try to resolve path inside container if the request path is part of the mount volume
112112#if OS_WINDOWS
113- if ( Container . MountVolumes . Exists ( x => path . StartsWith ( x . SourceVolumePath , StringComparison . OrdinalIgnoreCase ) ) )
113+ if ( Container . MountVolumes . Exists ( x => ! string . IsNullOrEmpty ( x . SourceVolumePath ) && path . StartsWith ( x . SourceVolumePath , StringComparison . OrdinalIgnoreCase ) ) )
114114#else
115- if ( Container . MountVolumes . Exists ( x => path . StartsWith ( x . SourceVolumePath ) ) )
115+ if ( Container . MountVolumes . Exists ( x => ! string . IsNullOrEmpty ( x . SourceVolumePath ) && path . StartsWith ( x . SourceVolumePath ) ) )
116116#endif
117117 {
118118 return Container . TranslateToContainerPath ( path ) ;
You can’t perform that action at this time.
0 commit comments