Skip to content

Commit a42831f

Browse files
committed
Fix crash for RecurseOnReferables of operation
1 parent fc6f41f commit a42831f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/AasxCsharpLibrary/Extensions/ExtendISubmodelElement.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,18 +1085,18 @@ public static void RecurseOnReferables(this List<ISubmodelElement> submodelEleme
10851085
{
10861086
SubmodelElementCollection opVariableCollection = new SubmodelElementCollection();
10871087
foreach (var inputVariable in operation.InputVariables)
1088-
{
1089-
opVariableCollection.Value.Add(inputVariable.Value);
1088+
{
1089+
opVariableCollection.AddChild(inputVariable.Value);
10901090
}
10911091

10921092
foreach (var outputVariable in operation.OutputVariables)
10931093
{
1094-
opVariableCollection.Value.Add(outputVariable.Value);
1094+
opVariableCollection.AddChild(outputVariable.Value);
10951095
}
10961096

10971097
foreach (var inOutVariable in operation.InoutputVariables)
10981098
{
1099-
opVariableCollection.Value.Add(inOutVariable.Value);
1099+
opVariableCollection.AddChild(inOutVariable.Value);
11001100
}
11011101

11021102
opVariableCollection.Value.RecurseOnReferables(state, parents, lambda);

0 commit comments

Comments
 (0)