Skip to content

Commit

Permalink
Fix NPEs
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc8.5.x/trunk@1793911 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed May 4, 2017
1 parent bf3cfe5 commit a71ed7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions java/org/apache/catalina/connector/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -2880,8 +2880,7 @@ private void parseParts(boolean explicit) {
String name = part.getName();
String value = null;
try {
Charset paramCharset = parameters.getCharset();
value = part.getString(paramCharset.name());
value = part.getString(charset.name());
} catch (UnsupportedEncodingException uee) {
// Not possible
}
Expand Down
2 changes: 1 addition & 1 deletion java/org/apache/tomcat/util/http/Parameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void recycle() {
parameterCount = 0;
paramHashValues.clear();
didQueryParameters = false;
charset = null;
charset = DEFAULT_BODY_CHARSET;
decodedQuery.recycle();
parseFailedReason = null;
}
Expand Down

0 comments on commit a71ed7e

Please sign in to comment.