Issue - #6493 - App crashes when we edit the route and press X button of a point - fixed

This commit is contained in:
madwasp79 2019-02-21 15:31:54 +02:00
parent 45d8204121
commit 3700a01bd7

View file

@ -587,7 +587,7 @@ public class WaypointsFragment extends BaseOsmAndFragment implements ObservableS
} }
private void deleteSwipeItem(int position) { private void deleteSwipeItem(int position) {
if (swipeDismissListener != null) { if (swipeDismissListener != null && position < listView.getCount()) {
swipeDismissListener.delete(position); swipeDismissListener.delete(position);
} }
} }