From ffb4b39c933684d01012c28fa8d010676f206f58 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 30 May 2018 13:11:38 +0200 Subject: [PATCH] Fix #5519 crash --- .../plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java index 9951f3d793..faf98230b4 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java @@ -74,6 +74,9 @@ public class SelectMapStyleBottomSheetDialogFragment extends MenuBottomSheetDial } else { selectedStyle = savedInstanceState.getString(SELECTED_STYLE_KEY); } + if(selectedStyle == null) { + selectedStyle = RendererRegistry.DEFAULT_RENDER; + } rbColorList = AndroidUtils.createCheckedColorStateList(context, R.color.icon_color, getActiveColorId());