diff --git a/OsmAnd/src/net/osmand/plus/widgets/InterceptorFrameLayout.java b/OsmAnd/src/net/osmand/plus/widgets/InterceptorFrameLayout.java index 2229b3163d..7f3ef67c3a 100644 --- a/OsmAnd/src/net/osmand/plus/widgets/InterceptorFrameLayout.java +++ b/OsmAnd/src/net/osmand/plus/widgets/InterceptorFrameLayout.java @@ -56,7 +56,9 @@ public class InterceptorFrameLayout extends FrameLayout { switch (action) { case MotionEvent.ACTION_DOWN: mDownX = ev.getRawX(); - listener.onTouch(this, ev); + if(listener != null) { + listener.onTouch(this, ev); + } return false; case MotionEvent.ACTION_MOVE: if (mIsScrolling) {