[ox/oc] Fix write to ignore null objects passed in
This commit is contained in:
parent
4f4ec089fd
commit
17762b40b7
2
deps/ox/src/ox/oc/write.hpp
vendored
2
deps/ox/src/ox/oc/write.hpp
vendored
@ -100,7 +100,7 @@ Error OrganicClawWriter::field(const char *key, ox::BString<L> *val) {
|
||||
|
||||
template<typename T>
|
||||
Error OrganicClawWriter::field(const char *key, T *val) {
|
||||
if (targetValid()) {
|
||||
if (val && targetValid()) {
|
||||
OrganicClawWriter w;
|
||||
oxReturnError(model(&w, val));
|
||||
if (!w.m_json.isNull()) {
|
||||
|
Loading…
Reference in New Issue
Block a user