Skip to content

Commit

Permalink
fix: null dereference that crashes file view
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecarenzo authored Feb 2, 2024
1 parent 001db5d commit 9fdacf6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,11 @@ export class MappingFileView {
prop instanceof ListItemProperty ||
prop instanceof ComputedProperty
) {
return control.isShown(prop.value.toString());
if(prop.value === null) {
return control.isShown(prop.value);
} else {
return control.isShown(`${ prop.value }`)
}
}
throw new Error(
`Cannot dereference value from '${ prop.constructor.name }'.`
Expand Down

0 comments on commit 9fdacf6

Please sign in to comment.