Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

sparse arrays aren't being handled correctly in Android Expression conversion #11749

@cammace

Description

@cammace

When trying to serialize JSON to a jsonArray and use the convert method, if the JSON string has an empty element , ,, the Map SDK throws a runtime exception https://github.com/mapbox/mapbox-gl-native/blob/release-boba/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/expressions/Expression.java#L3677 since when I use GSON to serialize, this value becomes a null element.

cc: @mapbox/maps-android

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidMapbox Maps SDK for Androidbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions