Skip to content

Commit

Permalink
force null geometry when error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Jun 7, 2024
1 parent 7de533e commit 6e35b7d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ protected void jsonElementToFeatureAttr(String attrName, String attrType, JsonEl
} catch (Exception e) {
LOGGER.error("Invalid geo:json format, (sikipped): " + attrValue.toString() + " - Error: "
+ e.getMessage());
feature.setGeometry(null);
}
break;
case NGSI_BOOLEAN_DATATYPE:
Expand Down

0 comments on commit 6e35b7d

Please sign in to comment.