From 32218bb48192e155adf2326425fbb011a06b4bc9 Mon Sep 17 00:00:00 2001 From: max-klaus Date: Thu, 24 Sep 2020 15:32:08 +0300 Subject: [PATCH] Fix SelectFileBottomSheet npe --- .../osmand/plus/measurementtool/SelectFileBottomSheet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/SelectFileBottomSheet.java b/OsmAnd/src/net/osmand/plus/measurementtool/SelectFileBottomSheet.java index d808f8f5e6..31502bea57 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/SelectFileBottomSheet.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/SelectFileBottomSheet.java @@ -215,7 +215,9 @@ public class SelectFileBottomSheet extends BottomSheetBehaviourDialogFragment { private void sortFileList() { List gpxInfoList = gpxInfoMap.get(selectedFolder); - sortSelected(gpxInfoList); + if (gpxInfoList != null) { + sortSelected(gpxInfoList); + } adapter.setGpxInfoList(gpxInfoList != null ? gpxInfoList : new ArrayList()); }