Skip to content

Commit

Permalink
Handling undefined values (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
SivashankaranK authored Feb 7, 2024
1 parent c630910 commit 9b3b702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geocoder/heregeocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9b3b702

Please sign in to comment.