Fix SelectFileBottomSheet npe

This commit is contained in:
max-klaus 2020-09-24 15:32:08 +03:00
parent 8d70ba97fe
commit 32218bb481

View file

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