From b0371c7558faeadd342ea7c3e4ef62eb5a9b2052 Mon Sep 17 00:00:00 2001 From: kamalnathvg Date: Mon, 9 Jun 2025 16:26:53 -0400 Subject: [PATCH] added null check for mapFocus --- .../commons/nearby/presenter/NearbyParentFragmentPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyParentFragmentPresenter.kt b/app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyParentFragmentPresenter.kt index b4639b14a..418bcca6f 100644 --- a/app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyParentFragmentPresenter.kt +++ b/app/src/main/java/fr/free/nrw/commons/nearby/presenter/NearbyParentFragmentPresenter.kt @@ -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