Task/set geometry null value when invalid format #2381
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Continuation of PR #2380
related with log:
time=2024-06-07T12:35:39.822Z | lvl=ERROR | corr=0c8ad6ce-3867-45b7-83ad-e01fcfc61686; cbnotif=1 | trans=fa366403-1782-4545-8273-d912c007dc6b | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=persistAggregation | msg=com.telefonica.iot.cygnus.sinks.NGSIArcgisFeatureTableSink[403] : [arcgis-sink-no-nm] Error persisting batch, NullPointerException - Cannot invoke "com.telefonica.iot.cygnus.backends.arcgis.model.Geometry.toJSON()" because the return value of "com.telefonica.iot.cygnus.backends.arcgis.model.Feature.getGeometry()" is null
time=2024-06-07T12:35:39.822Z | lvl=ERROR | corr=0c8ad6ce-3867-45b7-83ad-e01fcfc61686; cbnotif=1 | trans=fa366403-1782-4545-8273-d912c007dc6b | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=persistBatch | msg=com.telefonica.iot.cygnus.sinks.NGSIArcgisFeatureTableSink[310] : [arcgis-sink-no-nm] Error persisting batch, CygnusRuntimeError.CygnusRuntimeError. Cannot invoke "com.telefonica.iot.cygnus.backends.arcgis.model.Geometry.toJSON()" because the return value of "com.telefonica.iot.cygnus.backends.arcgis.model.Feature.getGeometry()" is null.