We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e26fb07 commit 14013b8Copy full SHA for 14013b8
1 file changed
src/vs/workbench/contrib/debug/common/debugUtils.ts
@@ -128,10 +128,12 @@ function stringToUri(source: PathContainer): string | undefined {
128
function uriToString(source: PathContainer): string | undefined {
129
if (typeof source.path === 'object') {
130
const u = uri.revive(source.path);
131
- if (u.scheme === 'file') {
132
- return u.fsPath;
133
- } else {
134
- return u.toString();
+ if (u) {
+ if (u.scheme === 'file') {
+ return u.fsPath;
+ } else {
135
+ return u.toString();
136
+ }
137
}
138
139
return source.path;
0 commit comments