Permalink
Browse files

mend

Fixed array index out of bounds in Utils.
  • Loading branch information...
pashtjo committed Oct 1, 2012
1 parent 59328b9 commit 7cdad5853ee9ab3162e022f5ce4e22f655d14e27
@@ -100,7 +100,7 @@ public static final String buildQueryString(Map<String, String[]> parameterMap,
else {
String[] newValues = new String[values.length + 1];
System.arraycopy(values, 0, newValues, 0, values.length);
- newValues[values.length + 1] = (parts.length > 1 ? parts[1] : null);
+ newValues[values.length] = (parts.length > 1 ? parts[1] : null);
parameterMap.put(parts[0], newValues);
}
}

0 comments on commit 7cdad58

Please sign in to comment.