Skip to content

Commit

Permalink
check for value before reading attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylannl committed Jun 26, 2020
1 parent b78d29b commit eccfe86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions postgis_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ void OGRPostGISWriterNode::process()
poFeature = OGRFeature::CreateFeature(layer->GetLayerDefn());
// Add the attributes to the feature
for (auto& term : poly_input("attributes").sub_terminals()) {
if (!term->get_data_vec()[i].has_value()) continue;
auto tname = term->get_name();
if (term->accepts_type(typeid(bool))) {
auto& val = term->get<const bool&>(i);
Expand Down

0 comments on commit eccfe86

Please sign in to comment.