Merge pull request #5195 from suem/bugfix_FilterSessionStore
NullPointerException in FilterSessionStore when restoring request
This commit is contained in:
commit
bc665fdbc3
1 changed files with 1 additions and 2 deletions
|
@ -111,8 +111,7 @@ public class FilterSessionStore implements AdapterSessionStore {
|
||||||
if (body == null) return new MultivaluedHashMap<String, String>();
|
if (body == null) return new MultivaluedHashMap<String, String>();
|
||||||
|
|
||||||
String contentType = getContentType();
|
String contentType = getContentType();
|
||||||
contentType = contentType.toLowerCase();
|
if (contentType != null && contentType.toLowerCase().startsWith("application/x-www-form-urlencoded")) {
|
||||||
if (contentType.startsWith("application/x-www-form-urlencoded")) {
|
|
||||||
ByteArrayInputStream is = new ByteArrayInputStream(body);
|
ByteArrayInputStream is = new ByteArrayInputStream(body);
|
||||||
try {
|
try {
|
||||||
parameters = parseForm(is);
|
parameters = parseForm(is);
|
||||||
|
|
Loading…
Reference in a new issue