@bpost/bp-address-auto-complete-by-component 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4460,7 +4460,9 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
4460
4460
  if (this.showDebugMessageToConsole) {
4461
4461
  console.log('notifyAddressComplete', this.selectedAddress, 'nis9InResponse:' + this.nis9InResponse, typeof this.nis9InResponse);
4462
4462
  }
4463
- if ((this.nis9InResponse === true || '' + this.nis9InResponse === 'true') && this.selectedAddress.hasOwnProperty('latitude') && this.selectedAddress.hasOwnProperty('longitude')) {
4463
+ if ((this.nis9InResponse === true || '' + this.nis9InResponse === 'true')
4464
+ && this.selectedAddress !== undefined && this.selectedAddress !== null
4465
+ && this.selectedAddress.hasOwnProperty('latitude') && this.selectedAddress.hasOwnProperty('longitude')) {
4464
4466
  var latitude = this.selectedAddress.latitude;
4465
4467
  var longitude = this.selectedAddress.longitude;
4466
4468
  if (this.showDebugMessageToConsole)