yaakov
Java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
val address = geocoder.getFromLocation(it.latitude, it.longitude, 1) val country = address[0].countryCode.toLowerCase()
fatih.yalmanbas
address.gerOrNull[0]?.countryCode?.toLowerCase().orEmpty() val country = if (address.isNotEmpty()) address[0].countryCode.toLowerCase() else ""
A modern programming language that makes developers happier.