mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
added null check for mapFocus
This commit is contained in:
parent
9b04031c91
commit
b0371c7558
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue