Skip to content

Commit

Permalink
Merge pull request #42 from kieler/41-crash-when-aadding-uca-with-con…
Browse files Browse the repository at this point in the history
…text-table-open

added check whether value for a variable in a UCA is defined to avoid…
  • Loading branch information
Drakae authored Sep 12, 2024
2 parents 622419c + 6e6211f commit e52b6f4
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 e52b6f4

Please sign in to comment.