mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
fix(nc): Ignore empty arrays when generating code
This commit is contained in:
parent
1109c86b9e
commit
6af2fa6f39
@ -169,6 +169,8 @@ def generateNodeValueCode(prepend , node, instanceName, valueName, global_var_co
|
||||
code = []
|
||||
if idxList is None:
|
||||
raise Exception("No index was passed and the code generation cannot generate the array element")
|
||||
if len(node) == 0:
|
||||
return "\n".join(code)
|
||||
# Code generation for structure arrays with fields of type Buildin.
|
||||
# Example:
|
||||
# Structure []
|
||||
|
Loading…
Reference in New Issue
Block a user