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

fix: don't panic on nil disclosure choice

parent 8f526b6d
......@@ -209,6 +209,9 @@ type NonRevocationRequest struct {
type NonRevocationParameters map[CredentialTypeIdentifier]*NonRevocationRequest
func (choice *DisclosureChoice) Validate() error {
if choice == nil {
return nil
}
for _, attrlist := range choice.Attributes {
for _, attr := range attrlist {
if attr.CredentialHash == "" {
......
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