Skip to content

Commit

Permalink
Fix a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tokudu committed Feb 6, 2016
1 parent a69241d commit b4baf27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/com/sothree/slidinguppanel/ViewDragHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ private void clearMotionHistory() {
}

private void clearMotionHistory(int pointerId) {
if (mInitialMotionX == null) {
if (mInitialMotionX == null || mInitialMotionX.length <= pointerId) {
return;
}
mInitialMotionX[pointerId] = 0;
Expand Down

0 comments on commit b4baf27

Please sign in to comment.