Skip to content

OGCConcreteGeometryCollection asGeoJson throws NullPointerException exception #85

Closed

Description

@estoianovici

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)

Activity

  1. added this to the 1.2.2 milestone on May 18, 2015
  2. stolstov commented on May 18, 2015

    @stolstov
    Member

    @estoianovici Thanks for reporting this.

  3. assigned and unassigned on May 26, 2016
  4. modified the milestones: 2.0.0, 1.2.2 on Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions