Merge pull request #1391 from commons-app/fixNearbyBugCausedThemeChange

Fix NPE in nearby fragment
This commit is contained in:
neslihanturan 2018-03-30 12:35:58 +03:00 committed by GitHub
commit 9b2f192478
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -579,7 +579,9 @@ public class NearbyMapFragment extends DaggerFragment {
transparentView.setAlpha(0);
closeFabs(isFabOpen);
hideFAB();
this.getView().requestFocus();
if (this.getView() != null) {
this.getView().requestFocus();
}
break;
}
}