Merge pull request #1009 from psh/nearby-crash-while-loading

Fixed NPE while rapidly switching between list and map on Nearby
This commit is contained in:
neslihanturan 2017-12-14 19:26:41 +03:00 committed by GitHub
commit 7a3f7e54e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -60,7 +60,7 @@ public class NearbyListFragment extends DaggerFragment {
Bundle bundle = this.getArguments();
if (bundle != null) {
String gsonPlaceList = bundle.getString("PlaceList");
String gsonPlaceList = bundle.getString("PlaceList", "[]");
placeList = gson.fromJson(gsonPlaceList, LIST_TYPE);
String gsonLatLng = bundle.getString("CurLatLng");