From 57ca4b8c9fb2fcd779f9997ef24cd97a480a78a1 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Thu, 12 Oct 2017 16:20:41 +0300 Subject: [PATCH] Prevent NPE --- .../plus/mapmarkers/OptionsBottomSheetDialogFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java index ffe914960f..91a8c769d7 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java @@ -42,8 +42,8 @@ public class OptionsBottomSheetDialogFragment extends BottomSheetDialogFragment public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle args = getArguments(); - showSortBy = args.getBoolean(SHOW_SORT_BY_ROW, true); - showMoveAllToHistory = args.getBoolean(SHOW_MOVE_ALL_TO_HISTORY_ROW, true); + showSortBy = args == null || args.getBoolean(SHOW_SORT_BY_ROW, true); + showMoveAllToHistory = args == null || args.getBoolean(SHOW_MOVE_ALL_TO_HISTORY_ROW, true); } @Nullable