Skip to content

Commit 0b9020f

Browse files
committed
Fix bug submodel descriptors
1 parent 471697d commit 0b9020f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/AasxServerBlazor/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"AasxServerBlazor": {
1212
"commandName": "Project",
13-
"commandLineArgs": "--with-db --start-index 1000 --no-security --save-temp 30 --secret-string-api 1234 --aasx-in-memory 7 --data-path \"C:\\Development\\aasxs-repository\" --edit --external-blazor http://localhost:5001",
13+
"commandLineArgs": "--start-index 0 --no-security --save-temp 30 --secret-string-api 1234 --aasx-in-memory 20 --data-path \"C:\\Development\\aasxs-repository\" --edit --external-blazor http://localhost:5001",
1414
"launchBrowser": true,
1515
"environmentVariables": {
1616
"ASPNETCORE_ENVIRONMENT": "Development",

src/IO.Swagger.Registry.Lib.V3/Controllers/AssetAdministrationShellRegistryAPIApi.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,12 @@ where true
244244
List<SubmodelDescriptor> submodelDescriptors = [];
245245
foreach (var ad in aasDescriptors)
246246
{
247-
foreach (var sd in ad.SubmodelDescriptors)
247+
if (ad != null && ad.SubmodelDescriptors != null)
248248
{
249-
submodelDescriptors.Add(sd);
249+
foreach (var sd in ad.SubmodelDescriptors)
250+
{
251+
submodelDescriptors.Add(sd);
252+
}
250253
}
251254
}
252255

0 commit comments

Comments
 (0)