From 6e35b7dca489afb6455be9d7ac95e05b9b25728c Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Fri, 7 Jun 2024 08:45:33 +0200 Subject: [PATCH] force null geometry when error --- .../telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java b/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java index 810eb6551..4f4e46226 100644 --- a/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java +++ b/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIArcgisFeatureTableSink.java @@ -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: