Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/set geometry null value when invalid format #2381

Merged
merged 5 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ public void setObjectId(Integer objectId) throws ArcgisException {
public JsonObject toJson() {
JsonObject resultJSON = new JsonObject();

resultJSON.add(GEOMETRY_TAG, this.getGeometry().toJSON());
Geometry geo = this.getGeometry();
if (geo != null) {
resultJSON.add(GEOMETRY_TAG, geo.toJSON());
}

JsonObject attributes = new JsonObject();
for (Map.Entry<String, Object> attribute : this.attributes.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ public class ArcgisAggregatorDomain {

LOGGER.debug("[ArcgisAggregatorDomain] - constructor init.");
try {
feature = Feature.createPointFeature(0, 0);
feature = new Feature();
} catch (Throwable e) {
LOGGER.error(
"ArcgisAggregatorDomain - Unexpected error " + e.getClass().getName() + " - " + e.getMessage());
Expand Down
Loading