Skip to content

Commit

Permalink
added check whether value for a variable in a UCA is defined to avoid…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
Drakae committed Sep 12, 2024
1 parent 622419c commit 6e6211f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class ContextTableProvider {
// determine context variables
const contextVariables: ContextTableVariable[] = [];
for (const assignedValue of context.assignedValues) {
if (assignedValue.variable.ref?.name) {
if (assignedValue.variable?.ref?.name && assignedValue.value?.$refText) {
contextVariables.push({ name: assignedValue.variable.ref.name, value: assignedValue.value.$refText });
}
}
Expand Down

0 comments on commit 6e6211f

Please sign in to comment.