diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 2d414b294..67eac22d3 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,3 +1,4 @@ +- [cygnus-ngsi][arcgis] Fix getObjectId to raise error when ObjectId is not retrieved from entity (#2424) - [cygnus-ngsi][arcgis] Fix json parse for instance of PolyLine, Polygon and Multipoint (#2423) - [cygnus-ngsi][arcgis] Check feature table is connected before use it (#2405) - [cygnus-ngsi][arcgis] Set feature table to not connected after a connection error (#2405) diff --git a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java index 2c62847c4..223f2154b 100644 --- a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java +++ b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/model/Feature.java @@ -275,8 +275,7 @@ public Integer getObjectId() throws ArcgisException { break; } } - - if ("".equals(objectId)) { + if (objectId.equals(-1)) { throw new ArcgisException("Cant find " + GisAttributeType.OID + " in Feature Object."); } else { return objectId;