Skip to content

Commit 14013b8

Browse files
committed
1 parent e26fb07 commit 14013b8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/vs/workbench/contrib/debug/common/debugUtils.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,12 @@ function stringToUri(source: PathContainer): string | undefined {
128128
function uriToString(source: PathContainer): string | undefined {
129129
if (typeof source.path === 'object') {
130130
const u = uri.revive(source.path);
131-
if (u.scheme === 'file') {
132-
return u.fsPath;
133-
} else {
134-
return u.toString();
131+
if (u) {
132+
if (u.scheme === 'file') {
133+
return u.fsPath;
134+
} else {
135+
return u.toString();
136+
}
135137
}
136138
}
137139
return source.path;

0 commit comments

Comments
 (0)