Skip to content

Commit

Permalink
Fixes an IndexOutOfBoundsError (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwernick committed Jan 9, 2017
1 parent 0c80889 commit 906ab1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ protected int findNextAllowedPosition(@IntRange(from = 0) int position) {
return getItemCount();
}

while (position < getItemCount() && !isAllowedType(getItem(position))) {
while (position < getItemCount() && position >= 0 && !isAllowedType(getItem(position))) {
position++;
}

Expand Down

0 comments on commit 906ab1f

Please sign in to comment.