Skip to content

Commit

Permalink
fix tc_json writeValue, when p is null
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Sep 19, 2024
1 parent bccdeef commit ef05606
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/src/tc_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,9 @@ void TC_Json::writeValue(const JsonValuePtr & p, string& ostr, bool withSpace)
case eJsonTypeBoolean:
writeBoolean(JsonValueBooleanPtr::dynamicCast(p), ostr);
break;
case eJsonTypeNull:
ostr += "null";
break;
default:
assert(false);
}
Expand Down

0 comments on commit ef05606

Please sign in to comment.