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

OGCConcreteGeometryCollection asGeoJson throws NullPointerException exception #85

Closed
estoianovici opened this issue May 17, 2015 · 1 comment
Assignees
Milestone

Comments

@estoianovici
Copy link

Scenario:
SpatialReference sr = SpatialReference.create(4326);
OGCPoint point = new OGCPoint(new Point(1.0, 1.0), sr);
OGCConcreteGeometryCollection collection = new OGCConcreteGeometryCollection(point, sr);
System.out.println(collection.asGeoJson());

Stack trace:
java.lang.NullPointerException
at com.esri.core.geometry.SimpleGeometryCursor.next(SimpleGeometryCursor.java:68)
at com.esri.core.geometry.OperatorExportToGeoJsonCursor.next(OperatorExportToGeoJsonCursor.java:72)
at com.esri.core.geometry.OperatorExportToGeoJsonLocal.execute(OperatorExportToGeoJsonLocal.java:49)
at com.esri.core.geometry.ogc.OGCGeometry.asGeoJson(OGCGeometry.java:96)

@stolstov
Copy link
Member

@estoianovici Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants