diff --git a/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java index fac225ad56..9951f3d793 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/SelectMapStyleBottomSheetDialogFragment.java @@ -67,7 +67,10 @@ public class SelectMapStyleBottomSheetDialogFragment extends MenuBottomSheetDial stylesMap = generateStylesMap(context); if (savedInstanceState == null) { - selectedStyle = getMyApplication().getRendererRegistry().getCurrentSelectedRenderer().getName(); + RenderingRulesStorage current = getMyApplication().getRendererRegistry().getCurrentSelectedRenderer(); + if (current != null) { + selectedStyle = current.getName(); + } } else { selectedStyle = savedInstanceState.getString(SELECTED_STYLE_KEY); }