Change in nodemanagement to fix problem with structures which are not #5906
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
created with Variable Type BaseDataVariableType.
If creating a structure with BaseDataVariableType as type definition, the attribute read before has no value. Because of this writeAttribute() is not called.
If creating a structure with another variable type as type definition, the attribute has a value. Strange it tells, that it is an extension object and not a structure anymore.
Afterwards writeAttribute() in the NodeSet changes the structre to an extension object.
This leads to the problem that we can not describe and handle the node properly after construction.
Here we fix the problem by not overwriting the attribute if it of type extension object.