{"action":"created","issue":{"url":"https://api.github.com/repos/pac4j/play-pac4j/issues/225","repository_url":"https://api.github.com/repos/pac4j/play-pac4j","labels_url":"https://api.github.com/repos/pac4j/play-pac4j/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/pac4j/play-pac4j/issues/225/comments","events_url":"https://api.github.com/repos/pac4j/play-pac4j/issues/225/events","html_url":"https://github.com/pac4j/play-pac4j/issues/225","id":278946913,"number":225,"title":"NullPointerException org.pac4j.play.PlayWebContext.getRequestParameters","user":{"login":"schmielinski","id":30405638,"avatar_url":"https://avatars3.githubusercontent.com/u/30405638?v=4","gravatar_id":"","url":"https://api.github.com/users/schmielinski","html_url":"https://github.com/schmielinski","followers_url":"https://api.github.com/users/schmielinski/followers","following_url":"https://api.github.com/users/schmielinski/following{/other_user}","gists_url":"https://api.github.com/users/schmielinski/gists{/gist_id}","starred_url":"https://api.github.com/users/schmielinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmielinski/subscriptions","organizations_url":"https://api.github.com/users/schmielinski/orgs","repos_url":"https://api.github.com/users/schmielinski/repos","events_url":"https://api.github.com/users/schmielinski/events{/privacy}","received_events_url":"https://api.github.com/users/schmielinski/received_events","type":"User","site_admin":false},"labels":[{"id":18903556,"url":"https://api.github.com/repos/pac4j/play-pac4j/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pac4j/play-pac4j/milestones/23","html_url":"https://github.com/pac4j/play-pac4j/milestone/23","labels_url":"https://api.github.com/repos/pac4j/play-pac4j/milestones/23/labels","id":2956901,"number":23,"title":"3.1.1","description":null,"creator":{"login":"leleuj","id":1038508,"avatar_url":"https://avatars1.githubusercontent.com/u/1038508?v=4","gravatar_id":"","url":"https://api.github.com/users/leleuj","html_url":"https://github.com/leleuj","followers_url":"https://api.github.com/users/leleuj/followers","following_url":"https://api.github.com/users/leleuj/following{/other_user}","gists_url":"https://api.github.com/users/leleuj/gists{/gist_id}","starred_url":"https://api.github.com/users/leleuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leleuj/subscriptions","organizations_url":"https://api.github.com/users/leleuj/orgs","repos_url":"https://api.github.com/users/leleuj/repos","events_url":"https://api.github.com/users/leleuj/events{/privacy}","received_events_url":"https://api.github.com/users/leleuj/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-12-04T16:57:45Z","updated_at":"2017-12-04T16:57:45Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-12-04T10:37:14Z","updated_at":"2017-12-05T08:16:00Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI'm having this issue after updating from 4.0.0 to 4.1.0. In PlayWebContext.getRequestParameters you use\r\nrequest.hasBody() condition which returns true but my body is null. So thats why request.body().asFormUrlEncoded() throws NullPointerException\r\n\r\nStacktrace:\r\nCaused by: java.lang.NullPointerException\r\n\tat org.pac4j.play.PlayWebContext.getRequestParameters(PlayWebContext.java:160)\r\n\tat org.pac4j.play.PlayWebContext.getRequestParameter(PlayWebContext.java:146)\r\n\tat org.pac4j.core.client.finder.DefaultClientFinder.find(DefaultClientFinder.java:28)\r\n\tat org.pac4j.core.engine.DefaultSecurityLogic.perform(DefaultSecurityLogic.java:96)\r\n\r\nEDIT: The problem appears only when I'm using SecurityFilter. Protecting urls by @Secure annotation works fine"},"comment":{"url":"https://api.github.com/repos/pac4j/play-pac4j/issues/comments/349228778","html_url":"https://github.com/pac4j/play-pac4j/issues/225#issuecomment-349228778","issue_url":"https://api.github.com/repos/pac4j/play-pac4j/issues/225","id":349228778,"user":{"login":"schmielinski","id":30405638,"avatar_url":"https://avatars3.githubusercontent.com/u/30405638?v=4","gravatar_id":"","url":"https://api.github.com/users/schmielinski","html_url":"https://github.com/schmielinski","followers_url":"https://api.github.com/users/schmielinski/followers","following_url":"https://api.github.com/users/schmielinski/following{/other_user}","gists_url":"https://api.github.com/users/schmielinski/gists{/gist_id}","starred_url":"https://api.github.com/users/schmielinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmielinski/subscriptions","organizations_url":"https://api.github.com/users/schmielinski/orgs","repos_url":"https://api.github.com/users/schmielinski/repos","events_url":"https://api.github.com/users/schmielinski/events{/privacy}","received_events_url":"https://api.github.com/users/schmielinski/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T08:16:00Z","updated_at":"2017-12-05T08:16:00Z","author_association":"NONE","body":"Yes, now it's ok. Thanks for quick fix"}}
{"actor":{"display_login":"schmielinski"}}