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.");
}
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.");
}