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

View file

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