Skip to content

Commit

Permalink
Update Feature.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored Jun 7, 2024
1 parent 79c0683 commit 11ed530
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import java.util.Set;

import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.telefonica.iot.cygnus.backends.arcgis.exceptions.ArcgisException;
Expand Down Expand Up @@ -313,7 +312,7 @@ public static Feature createInstanceFromJson(JsonObject json) throws ArcgisExcep
geometry = Point.createInstanceFromJson(jsonGeometry); // TODO another
//geometry types?
} else {
geometry = new JsonNull();
geometry = null;
}
Map<String, Object> attributes = attToMap(json.get(ATTRIBUTES_TAG).getAsJsonObject());
return new Feature(geometry, attributes);
Expand Down

0 comments on commit 11ed530

Please sign in to comment.