diff --git a/okapi.cpp b/okapi.cpp index dda8ee5..585efd2 100644 --- a/okapi.cpp +++ b/okapi.cpp @@ -151,6 +151,7 @@ Caches Okapi::get_caches(const std::set& codes) const { codes_list.clear(); for (auto& el : j.items()) { + if (el.value().is_null()) continue; c.code = el.value()["code"]; c.name = el.value()["name"]; c.type = el.value()["type"];