diff --git a/library/src/com/mobeta/android/dslv/DragSortController.java b/library/src/com/mobeta/android/dslv/DragSortController.java index a6fdd3c..06f91cd 100644 --- a/library/src/com/mobeta/android/dslv/DragSortController.java +++ b/library/src/com/mobeta/android/dslv/DragSortController.java @@ -382,6 +382,10 @@ public boolean onDown(MotionEvent ev) { @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { + if (e1 == null || e2 == null) { + return false; + } + final int x1 = (int) e1.getX(); final int y1 = (int) e1.getY(); final int x2 = (int) e2.getX();