Fix SelectFileBottomSheet npe

This commit is contained in:
max-klaus 2020-09-24 15:32:08 +03:00
parent 493bce7844
commit 685d2db529

View file

@ -215,7 +215,9 @@ public class SelectFileBottomSheet extends BottomSheetBehaviourDialogFragment {
private void sortFileList() {
List<GPXInfo> gpxInfoList = gpxInfoMap.get(selectedFolder);
if (gpxInfoList != null) {
sortSelected(gpxInfoList);
}
adapter.setGpxInfoList(gpxInfoList != null ? gpxInfoList : new ArrayList<GPXInfo>());
}