Skip to content

Commit ef141c6

Browse files
committed
Prevent from workspace uri undefined
Signed-off-by: azerr <azerr@redhat.com>
1 parent 93ed523 commit ef141c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/settings/variableSubstitution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function getVariableSubstitutedAssociations(associations: XMLFileAssociat
122122
const subVars = (val: string): string => {
123123
let newVal = val;
124124
for (const settingVariable of variablesToSubstitute) {
125-
newVal = settingVariable.substituteString(newVal, currentFileUri, currentWorkspaceUri.toString());
125+
newVal = settingVariable.substituteString(newVal, currentFileUri, currentWorkspaceUri?.toString());
126126
}
127127
return newVal;
128128
}

0 commit comments

Comments
 (0)