Skip to content

Commit

Permalink
nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Oct 4, 2023
1 parent 349eaeb commit 62a76c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions auth/api/iam/rendering.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ type CredentialInfo struct {
}

func makeCredentialInfo(cred vc.VerifiableCredential) CredentialInfo {
result := CredentialInfo{
ID: cred.ID.String(),
result := CredentialInfo{}
if cred.ID != nil {
result.ID = cred.ID.String()
}

for _, curr := range cred.Type {
Expand Down

0 comments on commit 62a76c1

Please sign in to comment.