mirror of
https://github.com/yushijinhun/authlib-injector.git
synced 2024-11-15 06:11:09 +01:00
nanohttpd: fix npe introduced in 2df9dde936
This commit is contained in:
parent
2df9dde936
commit
86feaa3273
1 changed files with 2 additions and 2 deletions
|
@ -222,9 +222,9 @@ public abstract class NanoHTTPD {
|
|||
String rawUri = st.nextToken();
|
||||
|
||||
// Decode parameters from the URI
|
||||
int qmi = uri.indexOf('?');
|
||||
int qmi = rawUri.indexOf('?');
|
||||
if (qmi >= 0) {
|
||||
this.queryParameterString = uri.substring(qmi + 1);
|
||||
this.queryParameterString = rawUri.substring(qmi + 1);
|
||||
this.parms = Collections.unmodifiableMap(decodeParms(this.queryParameterString));
|
||||
this.uri = decodePercent(rawUri.substring(0, qmi));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue