Skip to content

Commit

Permalink
Merge pull request #4 from N3TWORK/fix/lane-span-greaterequal-zero
Browse files Browse the repository at this point in the history
[FIX] Ensure lane is greater than -1
  • Loading branch information
juliooa authored Aug 3, 2018
2 parents 6297503 + 13bda06 commit b1e4129
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void getLane(int lane, Rect laneRect) {
}

public int pushChildFrame(Rect outRect, int lane, int margin, Direction direction) {
if(lane >= mLanes.length)
if(lane < 0 || lane >= mLanes.length)
return 0;

final int delta;
Expand Down

0 comments on commit b1e4129

Please sign in to comment.