From a53180453415a5bdea71616533548d46fc3acd30 Mon Sep 17 00:00:00 2001 From: smarcet Date: Tue, 4 Nov 2025 15:40:47 -0300 Subject: [PATCH] chore: fix null exception --- app/Services/Model/Imp/SummitLocationService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/Model/Imp/SummitLocationService.php b/app/Services/Model/Imp/SummitLocationService.php index 3df9059b9..59375b6db 100644 --- a/app/Services/Model/Imp/SummitLocationService.php +++ b/app/Services/Model/Imp/SummitLocationService.php @@ -272,7 +272,8 @@ public function updateLocation(Summit $summit, $location_id, array $data) if ($location instanceof SummitGeoLocatedLocation && $this->hasGeoLocationData2Update($data)) { try { $geo_location_strategy = GeoLocationStrategyFactory::build($location); - $geo_location_strategy->doGeoLocation($location, $this->geo_coding_api); + if(!is_null($geo_location_strategy)) + $geo_location_strategy->doGeoLocation($location, $this->geo_coding_api); } catch (GeoCodingApiException $ex1) { Log::warning($ex1->getMessage()); $validation_msg = trans('validation_errors.LocationService.addLocation.geoCodingGenericError');