added null check for mapFocus

This commit is contained in:
kamalnathvg 2025-06-09 16:26:53 -04:00
parent 9b04031c91
commit b0371c7558

View file

@ -568,7 +568,7 @@ class NearbyParentFragmentPresenter
loadPlacesDataAyncJob?.cancel()
localPlaceSearchJob = scope.launch(Dispatchers.IO) {
delay(LOCAL_SCROLL_DELAY)
val mapFocus = nearbyParentFragmentView.mapFocus
val mapFocus = nearbyParentFragmentView.mapFocus ?: return@launch
val markerPlaceGroups = placesRepository.fetchPlaces(
nearbyParentFragmentView.screenBottomLeft,
nearbyParentFragmentView.screenTopRight