Skip to content

Commit

Permalink
Merge pull request #740 from mstevetodd/master
Browse files Browse the repository at this point in the history
avoid arrayoutofboundsexception reported to play store
  • Loading branch information
mstevetodd authored Oct 23, 2020
2 parents 49d43c3 + 829c5b8 commit 165e1da
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ private void limitNumThrottles(SharedPreferences sharedPreferences) {
index = i;
}
}
if (index < 0) return; //bail if no matches

if ( ((fixed[index] == 1) && (numThrottles != max[index]))
|| ((fixed[index] == 0) && (numThrottles > max[index])) ) {
Expand Down

0 comments on commit 165e1da

Please sign in to comment.