Fix SelectFileBottomSheet npe
This commit is contained in:
parent
493bce7844
commit
685d2db529
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