{"action":"created","issue":{"url":"https://api.github.com/repos/pac4j/pac4j/issues/458","repository_url":"https://api.github.com/repos/pac4j/pac4j","labels_url":"https://api.github.com/repos/pac4j/pac4j/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/pac4j/pac4j/issues/458/comments","events_url":"https://api.github.com/repos/pac4j/pac4j/issues/458/events","html_url":"https://github.com/pac4j/pac4j/issues/458","id":128549482,"number":458,"title":"Null pointer exception serializing OidcProfile","user":{"login":"baxterj","id":2191736,"avatar_url":"https://avatars.githubusercontent.com/u/2191736?v=3","gravatar_id":"","url":"https://api.github.com/users/baxterj","html_url":"https://github.com/baxterj","followers_url":"https://api.github.com/users/baxterj/followers","following_url":"https://api.github.com/users/baxterj/following{/other_user}","gists_url":"https://api.github.com/users/baxterj/gists{/gist_id}","starred_url":"https://api.github.com/users/baxterj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baxterj/subscriptions","organizations_url":"https://api.github.com/users/baxterj/orgs","repos_url":"https://api.github.com/users/baxterj/repos","events_url":"https://api.github.com/users/baxterj/events{/privacy}","received_events_url":"https://api.github.com/users/baxterj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-25T14:37:15Z","updated_at":"2016-02-16T19:59:45Z","closed_at":"2016-02-09T18:42:31Z","body":"We have a problem using a shared session store with Pac4j oidc. There is a null pointer exception when Serializing OidcProfile.BearerAccessTokenBean,\r\n\r\nThe issue occurs in the toBean method, \r\n\r\n    public static BearerAccessTokenBean toBean(final BearerAccessToken token) {\r\n            return new BearerAccessTokenBean(token.getValue(),\r\n                    token.getLifetime(), token.getScope().toStringList());\r\n    }\r\n\r\nbut at this time I am not sure if token is null or token.getScope() is null. I suspect the latter. @mmoayyed I know you worked on this previously, which do you think it might be? Would it be ok to use `null` in place of the null token / null scope list?\r\n\r\nI will try to get this work planned in to our project, but in the mean time the issue is here if anyone else needs to work on it.   "},"comment":{"url":"https://api.github.com/repos/pac4j/pac4j/issues/comments/184854862","html_url":"https://github.com/pac4j/pac4j/issues/458#issuecomment-184854862","issue_url":"https://api.github.com/repos/pac4j/pac4j/issues/458","id":184854862,"user":{"login":"leleuj","id":1038508,"avatar_url":"https://avatars.githubusercontent.com/u/1038508?v=3","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},"created_at":"2016-02-16T19:59:45Z","updated_at":"2016-02-16T19:59:45Z","body":"@baxterj : I just released pac4j v1.8.6."}}