Fix SelectFileBottomSheet npe
This commit is contained in:
parent
8d70ba97fe
commit
32218bb481
1 changed files with 3 additions and 1 deletions
|
@ -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>());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue