Skip to content

Commit 1bc8dee

Browse files
committed
Fixed NPE while rapidly switching between list and map, during data loading.
1 parent f1edbfb commit 1bc8dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void onViewCreated(View view, Bundle savedInstanceState) {
6060

6161
Bundle bundle = this.getArguments();
6262
if (bundle != null) {
63-
String gsonPlaceList = bundle.getString("PlaceList");
63+
String gsonPlaceList = bundle.getString("PlaceList", "[]");
6464
placeList = gson.fromJson(gsonPlaceList, LIST_TYPE);
6565

6666
String gsonLatLng = bundle.getString("CurLatLng");

0 commit comments

Comments
 (0)