diff --git a/deps/ox/src/ox/oc/write.hpp b/deps/ox/src/ox/oc/write.hpp index bf181880..365392f9 100644 --- a/deps/ox/src/ox/oc/write.hpp +++ b/deps/ox/src/ox/oc/write.hpp @@ -100,7 +100,7 @@ Error OrganicClawWriter::field(const char *key, ox::BString *val) { template Error OrganicClawWriter::field(const char *key, T *val) { - if (targetValid()) { + if (val && targetValid()) { OrganicClawWriter w; oxReturnError(model(&w, val)); if (!w.m_json.isNull()) {