chadly / Geocoding.net

C# GeoCoding / Address Validation API
MIT License
444 stars 157 forks source link

ArgumentNullException thrown when address is empty #132

Open stefankip opened 4 years ago

stefankip commented 4 years ago

I'm using the Google geocoder and want to lookup a country. The documentation states that this is possible by only supplying a components parameter. But if I supply an empty string to the GeocodeAsync method, I get a ArgumentNullException: https://github.com/chadly/Geocoding.net/blob/master/src/Geocoding.Google/GoogleGeocoder.cs#L131