chadly / Geocoding.net

C# GeoCoding / Address Validation API
MIT License
443 stars 155 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