java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NULL

GitHub | BishopGIS | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 482#244009871

    GitHub | 6 months ago | BishopGIS
    java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NULL

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Expected BEGIN_OBJECT but was NULL

      at android.util.JsonReader.expect()
    2. Android Platform
      JsonReader.beginObject
      1. android.util.JsonReader.expect(JsonReader.java:310)
      2. android.util.JsonReader.beginObject(JsonReader.java:293)
      2 frames
    3. com.nextgis.maplib
      VectorLayer.createFromGeoJson
      1. com.nextgis.maplib.datasource.GeoGeometryFactory.fromJsonStream(GeoGeometryFactory.java:69)
      2. com.nextgis.maplib.util.GeoJSONUtil.readGeoJSONFeature(GeoJSONUtil.java:484)
      3. com.nextgis.maplib.util.GeoJSONUtil.createLayerFromGeoJSONStream(GeoJSONUtil.java:434)
      4. com.nextgis.maplib.map.VectorLayer.createFromGeoJson(VectorLayer.java:396)
      4 frames
    4. com.nextgis.maplibui
      LayerFillService$2.run
      1. com.nextgis.maplibui.service.LayerFillService$VectorLayerFillTask.execute(LayerFillService.java:390)
      2. com.nextgis.maplibui.service.LayerFillService$2.run(LayerFillService.java:253)
      2 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:841)
      1 frame