Skip to content

Commit

Permalink
Fix crash in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Sjolander committed Jul 12, 2014
1 parent c0c27fa commit 4b2d121
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ public long getHeaderId(int position) {

@Override
public int getPositionForSection(int section) {
if (mSectionIndices.length == 0) {
return 0;
}

if (section >= mSectionIndices.length) {
section = mSectionIndices.length - 1;
} else if (section < 0) {
Expand Down

0 comments on commit 4b2d121

Please sign in to comment.