finos / legend-engine

Legend Engine module
https://legend.finos.org
Apache License 2.0
83 stars 235 forks source link

fix null executables and diagrams in metamodel that was causing constraints validation errors for Dataspace (#3049) #3049

Closed keenkeystrokes closed 2 months ago

keenkeystrokes commented 2 months ago

What type of PR is this?

What does this PR do / why is it needed ?

The data space compiler extension sets the executables and diagrams as null in the dataspace metamodel when they are null in the protocol. Since they have [*] multiplicity, the validate method of the metamodel expects them to be non-null or empty. This bug leads to NPEs when validate method is called on the dataspace element.

Other notes for reviewers:

Does this PR introduce a user-facing change?

No