Skip to content

Nullability of Feature properties #880

@tobrun

Description

@tobrun

Reposting from issue downstream in mapbox/mapbox-gl-native#12744:


Have not actually experienced any problems, but the code shows how it could happen.

In com.mapbox.geojson.Feature the properties method is annotated as Nullable. The getStringProperty and others like it deferences the returned value with out checking for null.

Android versions: N/A
Device models: N/A
Mapbox SDK versions: 6.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions