Skip to content

Two routes error #19

Description

@hardikbhalodi

When only two routes lib throwing exception, seems wrong condition. (builder.latLngs.size() <= 2)

else if (builder.latLngs == null || builder.latLngs.isEmpty() || builder.latLngs.size() <= 2) {
throw new NullPointerException("LatLngs cannot be null or then count less than 2.");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions