Commit ee35495b authored by Sietse Ringers's avatar Sietse Ringers
Browse files

fix: nil deref in irmaclient revocation code in case of nonexisting credential types

parent d4dd4d61
......@@ -227,7 +227,7 @@ func (client *Client) nonrevPrepareCache(id irma.CredentialTypeIdentifier, index
func (client *Client) nonrevRepopulateCaches(request irma.SessionRequest) {
for id := range request.Disclosure().Identifiers().CredentialTypes {
credtype := client.Configuration.CredentialTypes[id]
if !credtype.RevocationSupported() {
if credtype == nil || !credtype.RevocationSupported() {
for i := range client.attrs(id) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment