Skip to content

Commit 9b2f192

Browse files
Merge pull request commons-app#1391 from commons-app/fixNearbyBugCausedThemeChange
Fix NPE in nearby fragment
2 parents 6fc294a + 499d64b commit 9b2f192

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,9 @@ public void prepareViewsForSheetPosition(int bottomSheetState) {
579579
transparentView.setAlpha(0);
580580
closeFabs(isFabOpen);
581581
hideFAB();
582-
this.getView().requestFocus();
582+
if (this.getView() != null) {
583+
this.getView().requestFocus();
584+
}
583585
break;
584586
}
585587
}

0 commit comments

Comments
 (0)