We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a879152 commit c7f4cffCopy full SHA for c7f4cff
include/realizations/catchment/Formulation_Manager.hpp
@@ -589,7 +589,8 @@ namespace realization {
589
void parse_external_model_params(geojson::PropertyMap& model_params, const geojson::Feature catchment_feature) {
590
geojson::PropertyMap attr {};
591
for (decltype(auto) param : model_params) {
592
- if (!param.second.has_key("source")) {
+ // Check for type to short-circuit. If param.second is not an object, `.has_key()` will throw
593
+ if (param.second.get_type() != geojson::PropertyType::Object || !param.second.has_key("source")) {
594
attr.emplace(param.first, param.second);
595
continue;
596
}
0 commit comments