Fix null qstring.

This commit is contained in:
Kavin 2023-11-20 06:09:26 +00:00
parent 8d04aca336
commit fdbeffaf37
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F
1 changed files with 9 additions and 11 deletions

View File

@ -135,7 +135,6 @@ public class URLUtils {
StringBuilder qstring = null;
if (hasQuery) {
for (List<String> pair : queryPairs) {
if (qstring == null) {
qstring = new StringBuilder();
@ -147,7 +146,6 @@ public class URLUtils {
qstring.append("=");
qstring.append(pair.get(1));
}
}
newUrl += "?" + qstring;