diff --git a/src/com/android/volley/ext/RequestInfo.java b/src/com/android/volley/ext/RequestInfo.java index 29dcc65..6f7b18e 100644 --- a/src/com/android/volley/ext/RequestInfo.java +++ b/src/com/android/volley/ext/RequestInfo.java @@ -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();