Describe the bug
Invoking the menu action 'New Submodel from pool of known' throws an exception if there are not yet any concept descriptions definied in the current package/environment. In addition, the required concept descriptions are not added to the project.
To Reproduce
Steps to reproduce the behavior:
Start the AASPE (which will create an empty package/environment)
Enable the 'Edit' mode
Create a new (empty) AAS
Select the AAS
Click on 'Workspace -> Create... -> New Submodel from pool of known'
Select any of the provided submodels, e.g. 'Digital Nameplate (IDTA) V2.0'
Click on 'Select!'
See error
Expected behavior
There is no exception and the required concept descriptions are copied to the package.
Screenshots
Additional context
The reason for this exception is in line 998 of the file "AasxPackageLogic/MainWindowHeadless.cs" (current main branch) where the concept descriptions are copied to the environment:
In case there are not yet any concept descriptions in the environment, "ticket.Env.ConceptDescriptions" is "null" instead of an empty list. Either when creating a new environment or directly at this place where the concept descriptions are added, the environment should be properly initialized with an empty list of ConceptDescriptions.
Describe the bug Invoking the menu action 'New Submodel from pool of known' throws an exception if there are not yet any concept descriptions definied in the current package/environment. In addition, the required concept descriptions are not added to the project.
To Reproduce Steps to reproduce the behavior:
Expected behavior There is no exception and the required concept descriptions are copied to the package.
Screenshots
Additional context The reason for this exception is in line 998 of the file "AasxPackageLogic/MainWindowHeadless.cs" (current main branch) where the concept descriptions are copied to the environment:
In case there are not yet any concept descriptions in the environment, "ticket.Env.ConceptDescriptions" is "null" instead of an empty list. Either when creating a new environment or directly at this place where the concept descriptions are added, the environment should be properly initialized with an empty list of ConceptDescriptions.