Skip to content

Commit

Permalink
Fixed bug when vetting params.
Browse files Browse the repository at this point in the history
Was using a for condition of i < size (where size was pre-calced), but
as the list could shrink WHILE being iterated on (items removed) this
caused a likely ArrayIndexOutOfBounds exception.
  • Loading branch information
Riyad Kalla committed Jul 18, 2011
1 parent e4a739e commit e90d821
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -390,7 +390,7 @@ public OAuthSigner params(List<String[]> paramList, ParamFilter filter) {

// Filter the param list if a filter was provided.
if (filter != null) {
for (int i = 0, size = paramList.size(); i < size; i++) {
for (int i = 0; i < paramList.size(); i++) {
String[] pair = paramList.get(i);

if (pair != null
Expand Down

0 comments on commit e90d821

Please sign in to comment.