kopia lustrzana https://gitlab.com/tomaszg/geostat
Apparently database dump can contain cache codes with no data. Don't crash in that case
rodzic
490714ec43
commit
1f558ef50d
|
@ -151,6 +151,7 @@ Caches Okapi::get_caches(const std::set<std::string>& 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"];
|
||||
|
|
Ładowanie…
Reference in New Issue