I noticed an old issue in #141 , which missed one senario: if a subfield is null which original type is string, the status structure is null when parsed from the above JSON
The code is as follows. cJSON_IsString(phase) is false, and causes goto end inv1_node_status_parseFromJSON
Unexpected processing behavior of null value(string type) in yaml/json
I noticed an old issue in #141 , which missed one senario: if a subfield is null which original type is string, the status structure is null when parsed from the above JSON
The code is as follows.
cJSON_IsString(phase)
is false, and causesgoto end
inv1_node_status_parseFromJSON
We have made the following quick fixes.
Null
phase
will be ok in finalv1_node_status_create
.We would like to ask you to fix this issue. Thanks in advance.