{"action":"closed","issue":{"url":"https://api.github.com/repos/difi/certvalidator/issues/2","labels_url":"https://api.github.com/repos/difi/certvalidator/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/difi/certvalidator/issues/2/comments","events_url":"https://api.github.com/repos/difi/certvalidator/issues/2/events","html_url":"https://github.com/difi/certvalidator/issues/2","id":126175818,"number":2,"title":"NPE in CRLRule","user":{"login":"thxmasj","id":3448852,"avatar_url":"https://avatars.githubusercontent.com/u/3448852?v=3","gravatar_id":"","url":"https://api.github.com/users/thxmasj","html_url":"https://github.com/thxmasj","followers_url":"https://api.github.com/users/thxmasj/followers","following_url":"https://api.github.com/users/thxmasj/following{/other_user}","gists_url":"https://api.github.com/users/thxmasj/gists{/gist_id}","starred_url":"https://api.github.com/users/thxmasj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thxmasj/subscriptions","organizations_url":"https://api.github.com/users/thxmasj/orgs","repos_url":"https://api.github.com/users/thxmasj/repos","events_url":"https://api.github.com/users/thxmasj/events{/privacy}","received_events_url":"https://api.github.com/users/thxmasj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T13:06:18Z","updated_at":"2016-01-20T16:38:53Z","closed_at":"2016-01-20T16:38:53Z","body":"A NullPointerException might occur in CRLRule, as the stacktrace below shows. As far as I can see this happens when the rule encounters an X.509 CRL which does not have the [Next update](https://tools.ietf.org/html/rfc5280#section-5.1.2.5) field. I'm unfortunately not able to provide information about which issuer that returned this CRL. However, I think the rule could handle this scenario better, either by issuing a new fetch, use the current CRL for validation, or fail the validation.\r\n\r\n```java\r\njava.lang.NullPointerException: null\r\n        at no.difi.certvalidator.rule.CRLRule.validate(CRLRule.java:50) ~[commons-certvalidator-2.0.1.jar:na]\r\n        at no.difi.certvalidator.structure.AndJunction.validate(AndJunction.java:23) ~[commons-certvalidator-2.0.1.jar:na]\r\n        at no.difi.certvalidator.Validator.validate(Validator.java:49) ~[commons-certvalidator-2.0.1.jar:na]\r\n        at no.difi.common.support.CertificateValidatorInterceptor.validateMessage(CertificateValidatorInterceptor.java:47) ~[CertificateValidatorInterceptor.class:na]\r\n```"}}