Skip to content

Null handling for clurster / marker etc. items #9

Description

@radzio
@BindingAdapter("gmv_clusterItems")
  public static <T> void clusterItems(GoogleMapView googleMapView,
      Collection<T> items) {
    if (items == null) {
      return;
    }

    googleMapView.clusterItems(items);
  }

We should handle nulls differently. If user passes null IMHO we should remove all elements.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions