Skip to content

Commit

Permalink
修改get请求的一个bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbo01 committed Oct 21, 2015
1 parent e54feaf commit 983aea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/android/volley/ext/RequestInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public String getFullUrl() {
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
if (sb.lastIndexOf("&") == sb.length() - 1) {
if (sb.length() > 0 && sb.lastIndexOf("&") == sb.length() - 1) {
sb.deleteCharAt(sb.length() - 1);
}
return url + sb.toString();
Expand Down

0 comments on commit 983aea5

Please sign in to comment.