Merge pull request #1820 from thomasdarimont/issue/KEYCLOAK-2068-NPE-in-KeycloakOidcFilter

KEYCLOAK-2068 - Fix Potential NPE when using Servlet-Filter Adapter.
This commit is contained in:
Stian Thorgersen 2015-11-13 16:00:34 +01:00
commit 8caaabb2e5

View file

@ -90,6 +90,9 @@ public class FilterSessionStore implements AdapterSessionStore {
MultivaluedHashMap<String, String> getParams() {
if (parameters != null) return parameters;
if (body == null) return new MultivaluedHashMap<String, String>();
String contentType = getContentType();
contentType = contentType.toLowerCase();
if (contentType.startsWith("application/x-www-form-urlencoded")) {