Skip to content

Commit 9b3b702

Browse files
Handling undefined values (#351)
1 parent c630910 commit 9b3b702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/geocoder/heregeocoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class HereGeocoder extends AbstractGeocoder {
7878
if (result.error === 'Unauthorized') {
7979
return callback(new ValueError(result.error_description), results);
8080
}
81-
var view = result.Response.View[0];
81+
var view = result.Response?.View[0];
8282
if (!view) {
8383
return callback(false, results);
8484
}

0 commit comments

Comments
 (0)