diff --git a/lib/geocoder/heregeocoder.js b/lib/geocoder/heregeocoder.js index 7764d4a..dfd4de3 100644 --- a/lib/geocoder/heregeocoder.js +++ b/lib/geocoder/heregeocoder.js @@ -78,7 +78,7 @@ class HereGeocoder extends AbstractGeocoder { if (result.error === 'Unauthorized') { return callback(new ValueError(result.error_description), results); } - var view = result.Response.View[0]; + var view = result.Response?.View[0]; if (!view) { return callback(false, results); }