Skip to content

Commit

Permalink
fix: missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Nov 6, 2023
1 parent 4fb6bba commit 29785b8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class StatusList2021EntryClientService: RevocationClientService {
bitSet.set(idx)
val encodedList = createEncodedBitString(bitSet)
// create / update the status list credential
credentialStorage.store(statusCredential.id!!, credentialSubject.statusPurpose, String(encodedList))
statusCredential.issuerId?.let { credentialStorage.store(it, statusCredential.id!!, credentialSubject.statusPurpose, String(encodedList)) }?:
throw IllegalArgumentException("Missing issuer for statusList credential.")
}

private fun extractStatusListCredentialSubject(statusCredentialUrl: String): StatusListCredentialSubject? =
Expand Down

0 comments on commit 29785b8

Please sign in to comment.